[FLOW3-general] PHPUnit problems: Bug #10428 related or new bug?

Martin Eisengardt MEP_Eisen at web.de
Mon Oct 25 14:01:43 CEST 2010


Hi Robert :)


Some minutes before You created a new issue: [http://forge.typo3.org/issues/10428]

However there seems to be another problem related to the aop proxy classes the aop framework generates. For example aop generates the following file:
[...]
class Bootstrap_AOPProxy_Development extends \F3\FLOW3\Core\Bootstrap implements \F3\FLOW3\AOP\ProxyInterface { [...]} __halt_compiler();0 %CLASS%F3_FLOW3_Core_Bootstrap6728 

Doing PHPUnit tests for every class that has a aop proxy and activating code coverage causes problems with my installation. PHPUnit deeply inside tries to interpret everything after __halt_compiler. It now detects an incomplete class called 'F3_FLOW3_Core_Bootstrap6728' which results in a notice later on (endLine in classinfo array was not set). The notice causes an exception to be thrown in my installation.

I changed PHPUnit/Util/File.php, lines 246-150 to:
    switch ($tokens[$i][0]) {         case T_HALT_COMPILER: {             return;         }         break;         case T_NAMESPACE: { 
            $currentNamespace = $tokens[$i+2][1];
I do not know if a newer version of PHPUnit already fixes the problem. I am still using alpha11. Can you verify this bug? Is this a new bug or is it related to #10428?


Greetings Martin


More information about the FLOW3-general mailing list