PhpSpec\Loader\Node\SpecificationNode::getTitle PHP Метод

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

public getTitle ( ) : string
Результат string
    public function getTitle()
    {
        return $this->title;
    }

Usage Example

 function it_should_creates_result_event(ExampleEvent $exampleEvent, SpecificationNode $specificationNode, CodeCoverageSession $coverageSession)
 {
     $exampleEvent->getResult()->shouldBeCalled()->willReturn(ExampleEvent::PASSED);
     $specificationNode->getTitle()->shouldBeCalled()->willReturn('SomeSpesification');
     $coverageSession->stop()->shouldBeCalled();
     $this->afterExample($exampleEvent);
     $this->getResults()->shouldHaveCount(1);
 }
All Usage Examples Of PhpSpec\Loader\Node\SpecificationNode::getTitle