mageekguy\atoum\asserters\exception::getLastValue PHP Method

getLastValue() public static method

public static getLastValue ( )
    public static function getLastValue()
    {
        return static::$lastValue;
    }

Usage Example

Example #1
0
 public function testGetLastValue()
 {
     $this->variable(sut::getLastValue())->isNull()->if($asserter = new sut(new asserter\generator()))->and($asserter->setWith(function () use(&$exception) {
         $exception = new \exception();
         throw $exception;
     }))->then->object(sut::getLastValue())->isIdenticalTo($exception)->and($asserter->setWith(function () use(&$otherException) {
         $otherException = new \exception();
         throw $otherException;
     }))->then->object(sut::getLastValue())->isIdenticalTo($otherException);
 }
All Usage Examples Of mageekguy\atoum\asserters\exception::getLastValue