BetterReflectionTest\Reflection\ReflectionClassTest::testStartEndLine PHP Метод

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

public testStartEndLine ( string $php, integer $expectedStart, integer $expectedEnd )
$php string
$expectedStart integer
$expectedEnd integer
    public function testStartEndLine($php, $expectedStart, $expectedEnd)
    {
        $reflector = new ClassReflector(new StringSourceLocator($php));
        $classInfo = $reflector->reflect('Foo');
        $this->assertSame($expectedStart, $classInfo->getStartLine());
        $this->assertSame($expectedEnd, $classInfo->getEndLine());
    }
ReflectionClassTest