PhpSpec\Event\ExampleEvent::getTitle PHP Method

getTitle() public method

public getTitle ( ) : string
return string
    public function getTitle()
    {
        return $this->example->getTitle();
    }

Usage Example

Exemplo n.º 1
0
 function it_should_call_afterCurrentExample(ExampleEvent $example)
 {
     $currentExample = new CurrentExampleTracker();
     $currentExample->setCurrentExample(null);
     $example->getTitle()->willReturn(null);
     $this->afterCurrentExample($example);
     $example->getTitle()->shouldNotHaveBeenCalled();
 }
All Usage Examples Of PhpSpec\Event\ExampleEvent::getTitle