spec\PHPSpec2\Loader\Node\Example::it_should_return_first_parent_specification PHP Method

it_should_return_first_parent_specification() public method

public it_should_return_first_parent_specification ( PHPSpec2\Loader\Node\Specification $specification1, PHPSpec2\Loader\Node\Specification $specification2 )
$specification1 PHPSpec2\Loader\Node\Specification
$specification2 PHPSpec2\Loader\Node\Specification
    function it_should_return_first_parent_specification($specification1, $specification2)
    {
        $specification1->getParent()->willReturn($specification2);
        $this->setParent($specification1);
        $this->getSpecification()->shouldReturn($specification1);
    }