I just installed Eclipse Oxygen Then I installed PHP 7.0.22
In Eclipse I create a PHP project "phput" Then following the guide found in https://phpunit.de/getting-started-with-phpunit.html
In the project folder
$ composer.phar require --dev phpunit/phpunit ^6
Everything seems OK
$ cat composer.json { "require-dev": { "phpunit/phpunit": "^6" }
} $ ./vendor/bin/phpunit --version PHPUnit 6.5.5 by Sebastian Bergmann and contributors.
However, when I look at my project in Eclipse, most of the components in vendor have some sort of errors (71 errors in total)
Even the class PHPUnit_Framework_TestCase
causes this error ...cannot resolved to a type
What did I do wrong here?