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

PHPUnit_Framework_TestCase' not found in #150

Open
spham opened this issue Apr 29, 2019 · 2 comments
Open

PHPUnit_Framework_TestCase' not found in #150

spham opened this issue Apr 29, 2019 · 2 comments

Comments

@spham
Copy link

spham commented Apr 29, 2019

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 ?

@johngarciasterequip
Copy link

Hi I am having similar problem. How did you resolve this? Thank you.

@bobbybouwmann
Copy link

@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 ;)

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

3 participants