PHPUnit_Framework_TestCase' not found in
Hi I have an issue when launch my first test ./vendor/bin/phpunit tests/
PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /Users/testIntuitive/vendor/laracasts/integrated/src/Extensions/Goutte.php on line 11 PHP Stack trace:
what i do
//composer require phpunit/phpunit --dev
//composer require laracasts/integrated --dev
<?php
use Laracasts\Integrated\Extensions\Goutte as IntegrationTest;
class ExampleTest extends IntegrationTest
{
protected $baseUrl = 'http://localhost:8888';
/** @test */
function it_first_test()
{
# code...
$this->visit('/');
}
}
?>
./vendor/bin/phpunit --version PHPUnit 8.1.3 by Sebastian Bergmann and contributors.
php -v
PHP 7.2.9 (cli) (built: Aug 21 2018 07:42:00) ( NTS )
what is wrong ?
Hi I am having similar problem. How did you resolve this? Thank you.
@johngarciasterequip You're using a newer version of PHPUnit which has been updated to use the PHPUnit\Framework\TestCase class instead. This package currently doesn't support that newer version of PHPUnit.
Also, stated in the README, most of the functionality of this package is now available at the core of Laravel. In theory, you don't need this package anymore ;)