BetterReflectionTest\Util\FindReflectionOnLineTest::testInvokeFindsFunction PHP Méthode

testInvokeFindsFunction() public méthode

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