/** * A test started. * * @param PHPUnit_Framework_Test $test */ public function startTest(PHPUnit_Framework_Test $test) { if ($test instanceof \PHPUnit_Framework_TestCase) { $annotations = $test->getAnnotations(); if (isset($annotations['method'][$this->annotationName])) { $annotationValue = preg_replace('/\\s+/', '', $annotations['method'][$this->annotationName][0]); $annotationValue = explode(',', $annotationValue); $fakerino = Fakerino\Fakerino::create(); $fakeData = $fakerino->fake($annotationValue)->toArray(); $test->setDependencyInput($fakeData); } } }