Closed unlikenesses closed 4 years ago
Simply change <directory>./</directory>
to <directory>tests</directory>
.
With <directory>./</directory>
you instruct PHPUnit to look for tests in all files that have a .php
suffix and are located in .
and its sub-directories (recursively). This includes the vendor
directory which contains the sources for PHPUnit itself as well as its dependencies -- including tests. You do not want this (nobody wants this).
Summary
After installing PhpUnit with
and running
the following error occurs:
My
phpunit.xml
file looks like this:This looks like the same issue as https://github.com/sebastianbergmann/phpunit/issues/3757