Exemplo n.º 1
0
 public function test__call()
 {
     $this->if($generator = new testedClass())->then->exception(function () use($generator, &$asserter) {
         $generator->{$asserter = uniqid()}();
     })->isInstanceOf('mageekguy\\atoum\\exceptions\\logic\\invalidArgument')->hasMessage('Asserter \'' . $asserter . '\' does not exist')->object($generator->variable(uniqid()))->isInstanceOf('mageekguy\\atoum\\asserters\\variable');
 }