PhpSpec\Event\SuiteEvent::getResult PHP Method

getResult() public method

public getResult ( ) : integer
return integer
    public function getResult()
    {
        return $this->result;
    }

Usage Example

 function it_should_call_afterSuiteEvent(SuiteEvent $example)
 {
     $fatalError = '3';
     $currentExample = new CurrentExampleTracker();
     $currentExample->setCurrentExample("Exited with code: " . $fatalError);
     $example->getResult()->willReturn($fatalError);
     $this->afterSuiteEvent($example);
     $example->getResult()->shouldHaveBeenCalled();
 }
All Usage Examples Of PhpSpec\Event\SuiteEvent::getResult