BetterReflectionTest\Util\FindReflectionOnLineTest::testInvokeFindsMethod PHP Method

testInvokeFindsMethod() public method

    public function testInvokeFindsMethod()
    {
        $finder = new FindReflectionOnLine();
        $reflection = $finder(__DIR__ . '/../Fixture/FindReflectionOnLineFixture.php', 14);
        $this->assertInstanceOf(ReflectionMethod::class, $reflection);
        $this->assertSame('someMethod', $reflection->getName());
    }