array('beforeSpecification'), ); } public function beforeSpecification(SpecificationEvent $event) { $examplesToAdd = array(); $parser = new Parser(); foreach ($event->getSpecification()->getExamples() as $example) { $dataProviderMethod = $parser->getDataProvider($example->getFunctionReflection()); if (null !== $dataProviderMethod) { if (!$example->getSpecification()->getClassReflection()->hasMethod($dataProviderMethod)) { return false; } $subject = $example->getSpecification()->getClassReflection()->newInstance(); $providedData = $example->getSpecification()->getClassReflection()->getMethod($dataProviderMethod)->invoke($subject); if (is_array($providedData)) { foreach ($providedData as $i => $dataRow) { $examplesToAdd[] = new ExampleNode($i+1 . ') ' . $example->getTitle(), $example->getFunctionReflection()); } } } } foreach ($examplesToAdd as $example) { $event->getSpecification()->addExample($example); } } } __halt_compiler();----SIGNATURE:----jGetal3H6zmTtD6NR4013vbpQM6WTFKCpQkVOByr95o6tEk5s/ysAzHNO87vE6UTcny/ZUw6I+mJJWw/ro4gtMHt+q/2EKGDPZ/F/KX9jBLIboCZd00eCbReGf0BaqSMmohIzbAxrrxPIczN/Iw3g+ScGUjy7xcRxdlnJAuMWyMmIkYrnXpmwRj1/EpIj1NXnf5SK5B60nQasVAg1k1fG1Uu9jE6vMEt8mTee8hfmUmnm6uAlvipHAITxkO4TtA3EivSPbOKAKxD2I8sOb3/GVZYoknnUfxaJjyBwPsz0WpoVWGY0NPLxmmyp5MEja/0+82j4Tc5XDQ413x9W4Yrhmi4t+4Q7AcNDQE0e2YeSsW674BFYg6q3kOwjCaM4ndbDahLrXQDbb93n11CE4IBhuhWkjCw1SoUf8g3yj0vzBngV6PiMz1vWg/MF4LNUmmiDYyyfvjKw/eCvImoaNSJgJ4C////UuH4E4Fwb4uA3J187BUlxoEuiUAm70WmQuTYn4FlT9lm6YJoapgx/zhmbiOTJ64e+JMoY225srHiINUY85S+ix+BtUBgV3VpVz9PuKakOp5TEb8aTjeItaIwx1ZL/lucpVqYRsGZIGcDLLKXfVzyRvU4BfSjikxfWHi3v+CaKHc/b3wa1aRD+9Q6K0SRuNv6y4zoEegAnNEP7ZM=----ATTACHMENT:----Mjg4NzE2ODQ0OTYxMzExMyAyMDIyNTU4MjM3OTc5NTM5IDg2MjM3NDcyNzMxODU5MjU=