public function testCompilerAllowReflectionException() { $definition = new CompilerDefinition(); $definition->setAllowReflectionExceptions(); $definition->addDirectory(__DIR__ . '/../TestAsset/InvalidCompilerClasses'); $definition->compile(); $parameters = $definition->getMethodParameters('ZendTest\\Di\\TestAsset\\InvalidCompilerClasses\\InvalidClass', '__construct'); // The exception gets caught before the parameter's class is set $this->assertCount(1, current($parameters)); }