setReflectionClassInjector() public method

public setReflectionClassInjector ( closure $reflectionClassInjector )
$reflectionClassInjector closure
Exemplo n.º 1
0
 public function testGetReflectionClass()
 {
     $this->if($field = new testedClass(uniqid(), uniqid(), uniqid()))->then->object($field->getReflectionClass(__CLASS__))->isInstanceOf('reflectionClass')->string($field->getReflectionClass(__CLASS__)->getName())->isEqualTo(__CLASS__)->if($field->setReflectionClassInjector(function ($class) {
     }))->then->exception(function () use($field) {
         $field->getReflectionClass(uniqid());
     })->isInstanceOf('mageekguy\\atoum\\exceptions\\runtime\\unexpectedValue')->hasMessage('Reflection class injector must return a \\reflectionClass instance');
 }