tag:blogger.com,1999:blog-6433195580005513636.post1511714774097055496..comments2022-11-09T03:49:29.478-07:00Comments on Everybody Needs an oOcha!: PHPUnit Custom Extension - Class ... could not be found in ...Anonymoushttp://www.blogger.com/profile/10543604359860441809noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6433195580005513636.post-58403722509085202452009-08-21T02:53:46.952-06:002009-08-21T02:53:46.952-06:00I cannot reproduce the issue with PHPUnit 3.3-SVN ...I cannot reproduce the issue with PHPUnit 3.3-SVN and PHPUnit 3.4-SVN.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6433195580005513636.post-52482727319572772012009-08-20T19:57:02.744-06:002009-08-20T19:57:02.744-06:00Excellent explanation of the problem. Based on yo...Excellent explanation of the problem. Based on your discovery, I wrote up a patch that avoids having to require classes in your bootstrap file (we'll see if it comes through):<br /><br />Index: PHPUnit/Runner/StandardTestSuiteLoader.php<br />===================================================================<br />--- PHPUnit/Runner/StandardTestSuiteLoader.php (revision 5126)<br />+++ PHPUnit/Runner/StandardTestSuiteLoader.php (working copy)<br />@@ -116,7 +116,7 @@<br /> foreach ($loadedClasses as $loadedClass) {<br /> $class = new ReflectionClass($loadedClass);<br /> <br />- if ($class->isSubclassOf($testCaseClass)) {<br />+ if ($class->isSubclassOf($testCaseClass) && !$class->isAbstract()) {<br /> $suiteClassName = $loadedClass;<br /> $testCaseClass = $loadedClass;<br /> <br /><br />I sent it along to sb, but I can't link to a ticket on phpunit.de because I can't create one.Anonymousnoreply@blogger.com