mageekguy\atoum\score::getLastRuntimeException PHP Метод

getLastRuntimeException() публичный Метод

    public function getLastRuntimeException()
    {
        return end($this->runtimeExceptions) ?: null;
    }

Usage Example

Пример #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);
 }