getLastRuntimeException() public method

Beispiel #1
0
 public function testGetLastRuntimeException()
 {
     $this->if($score = new atoum\score())->then->variable($score->getLastRuntimeException())->isNull()->if($score->addPass())->then->variable($score->getLastRuntimeException())->isNull()->if($score->addRuntimeException($file = uniqid(), $class = uniqid(), $method = uniqid(), $exception = new exceptions\runtime()))->then->object($score->getLastRuntimeException())->isIdenticalTo($exception)->if($score->addRuntimeException($otherFile = uniqid(), $otherClass = uniqid(), $otherMethod = uniqid(), $otherException = new exceptions\runtime()))->then->object($score->getLastRuntimeException())->isIdenticalTo($otherException);
 }