spec\PhpSpec\Loader\Node\ExampleNodeSpec::it_returns_its_line_number_as_zero_if_constructed_with_closure PHP Méthode

it_returns_its_line_number_as_zero_if_constructed_with_closure() public méthode

public it_returns_its_line_number_as_zero_if_constructed_with_closure ( ReflectionFunctionAbstract $function )
$function ReflectionFunctionAbstract
    function it_returns_its_line_number_as_zero_if_constructed_with_closure(\ReflectionFunctionAbstract $function)
    {
        $function->isClosure()->willReturn(true);
        $this->getLineNumber()->shouldReturn(0);
    }