You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same issue occurs with test suite names like "Generator", "Closure" etc., but not with something like "get_class", "strlen" etc.
Expected Result
No tests executed!
Actual Result
(The backtrace was added in line 153 of TestSuite.php by myself)
#0 PHPUnit\Framework\TestSuite->__construct() called at [/home/jost/projects/gingco_appserver/branches/dev_restructuring/InstallerBuilder/tmp/test/vendor/phpunit/phpunit/src/Util/Configuration.php:916] #1 PHPUnit\Util\Configuration->getTestSuite() called at [/home/jost/projects/gingco_appserver/branches/dev_restructuring/InstallerBuilder/tmp/test/vendor/phpunit/phpunit/src/Util/Configuration.php:875] #2 PHPUnit\Util\Configuration->getTestSuiteConfiguration() called at [/home/jost/projects/gingco_appserver/branches/dev_restructuring/InstallerBuilder/tmp/test/vendor/phpunit/phpunit/src/TextUI/Command.php:784] #3 PHPUnit\TextUI\Command->handleArguments() called at [/home/jost/projects/gingco_appserver/branches/dev_restructuring/InstallerBuilder/tmp/test/vendor/phpunit/phpunit/src/TextUI/Command.php:152] #4 PHPUnit\TextUI\Command->run() called at [/home/jost/projects/gingco_appserver/branches/dev_restructuring/InstallerBuilder/tmp/test/vendor/phpunit/phpunit/src/TextUI/Command.php:141] #5 PHPUnit\TextUI\Command::main() called at [/home/jost/projects/gingco_appserver/branches/dev_restructuring/InstallerBuilder/tmp/test/vendor/phpunit/phpunit/phpunit:53]
Fatal error: Uncaught PHPUnit\Framework\Exception: Class "DateTime" does not extend PHPUnit\Framework\TestCase.
thrown in /home/jost/projects/gingco_appserver/branches/dev_restructuring/InstallerBuilder/tmp/test/vendor/phpunit/phpunit/src/Framework/TestSuite.php on line 154
The text was updated successfully, but these errors were encountered:
This is a relic of how test suites used to work, back when you had to write classes that extend TestSuite manually to organize your tests. This can probably not be "fixed" before PHPUnit 7.
If a testsuite name in phpunit.xml is the name of a built-in class, an exception is thrown.
Minimal example:
composer.json
phpunit.xml
Same issue occurs with test suite names like "Generator", "Closure" etc., but not with something like "get_class", "strlen" etc.
Expected Result
No tests executed!
Actual Result
(The backtrace was added in line 153 of
TestSuite.php
by myself)The text was updated successfully, but these errors were encountered: