Skip to content

PHPUnit_Framework_TestCase' not found in  #150

@spham

Description

@spham

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions