BetterReflectionTest\Util\FindReflectionOnLineTest::testInvokeFindsFunction PHP Method

testInvokeFindsFunction() public method

    public function testInvokeFindsFunction()
    {
        $finder = new FindReflectionOnLine();
        $reflection = $finder(__DIR__ . '/../Fixture/FindReflectionOnLineFixture.php', 5);
        $this->assertInstanceOf(ReflectionFunction::class, $reflection);
        $this->assertSame('fooFunc', $reflection->getName());
    }