slimphp / Slim-HttpCache

Slim Framework HTTP cache middleware and service provider
MIT License
115 stars 25 forks source link

Need to specify a target version for phpunit? #22

Closed andybeak closed 7 years ago

andybeak commented 7 years ago

When Travis tests on php version 7 it installs a newer version of phpunit.

This results in the error PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /home/travis/build/slimphp/Slim-HttpCache/tests/CacheProviderTest.php on line 7 (example)

This happens because phpunit version 6 released on 2017-02-03 is namespaced. You will need to refactor things like \PHPUnit_Framework_TestCase to \PHPUnit\Framework\TestCase

akrabat commented 7 years ago

Fixed now I think.