PhpSpec\Loader\Node\SpecificationNode::getExamples PHP Method

getExamples() public method

public getExamples ( ) : ExampleNode[]
return ExampleNode[]
    public function getExamples()
    {
        return $this->examples;
    }

Usage Example

 function it_dispatches_SpecificationEvent_before_and_after_examples_run(EventDispatcherInterface $dispatcher, SpecificationNode $specification)
 {
     $specification->getExamples()->willReturn(array());
     $dispatcher->dispatch('beforeSpecification', Argument::type('PhpSpec\\Event\\SpecificationEvent'))->shouldBeCalled();
     $dispatcher->dispatch('afterSpecification', Argument::type('PhpSpec\\Event\\SpecificationEvent'))->shouldBeCalled();
     $this->run($specification);
 }
All Usage Examples Of PhpSpec\Loader\Node\SpecificationNode::getExamples