sebastianbergmann/phpunit — Issue #376: Test suites starting with "PHPUnit_" result in misleading error message
Author: lapistano
Created: 2011-10-13 08:54:53+00:00
State: open

When trying to write an extension for PHPUnit I stumbled upon the situation that I added a new constraint. I chose a class name following the already defined constraints ( 'PHPUnit_Framework_Constraint_SpecialMatches'). to verify its correct behavior I also wrote some tests.
But when running phpunit to see if the tests verify my implementation correctness I only got the "Testsuite 'foo' does not contain tests' message.
After some consulting on the latest IPC we found out, that test suites starting with 'PHPUnit_' will be recognized in terms of registration to the test runner but its tests are completely ignored.
As for a solution I propose to change the error message of this case to something to one describing the fault more clear, like 'The class name of a test suite shall not be prefixed with "PHPUnit_" '.