Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error on unit test? #91

Closed
fcosrno opened this issue Jun 3, 2014 · 4 comments
Closed

Fatal error on unit test? #91

fcosrno opened this issue Jun 3, 2014 · 4 comments

Comments

@fcosrno
Copy link

fcosrno commented Jun 3, 2014

When running test I'm getting Fatal error: Class 'Smtpapi\Header' not found in sendgrid-php/lib/SendGrid/Email.php on line 23. Anyone else getting this?

Steps:

composer update --dev
cd test
phpunit
@motdotla
Copy link
Contributor

motdotla commented Jun 3, 2014

What version of PHP are you using @FSerrano ?

@fcosrno
Copy link
Author

fcosrno commented Jun 4, 2014

PHP 5.3.10-1ubuntu3.11

@motdotla
Copy link
Contributor

motdotla commented Jun 4, 2014

I can't repeat it yet @FSerrano. Possibly it's a phpunit version issue. Try using the one inside vendor:

composer update --dev
cd test
../vendor/bin/phpunit

@fcosrno
Copy link
Author

fcosrno commented Jun 4, 2014

A PHPUnit version issue indeed. I have PHPUnit 4.1.1, but I ran it like you suggested and it worked. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants