piece / stagehand-testrunner

A continuous test runner for CLI
https://github.com/piece/stagehand-testrunner/wiki
BSD 2-Clause "Simplified" License
35 stars 12 forks source link

Testcases derived from PHPUnit_Extensions_Database_TestCase cause errors #53

Closed maikgreubel closed 5 years ago

maikgreubel commented 7 years ago

Hello,

as told in issue https://github.com/piece/makegood/issues/69 there is a problem if in line

https://github.com/piece/stagehand-testrunner/blob/master/src/Util/FailureTrace.php#L85

$class->getParentClass() returns boolean(false). This is the case, when ReflectionClass object was created for e.g.

trait PHPUnit_Extensions_Database_TestCase_Trait

which is the case in my test run. I have phpunit test cases which derives from PHPUnit_Extensions_Database_TestCase.