BetterReflectionTest\Util\FindReflectionOnLineTest::testInvokeFindsInterface PHP Method

testInvokeFindsInterface() public method

    public function testInvokeFindsInterface()
    {
        $finder = new FindReflectionOnLine();
        $reflection = $finder(__DIR__ . '/../Fixture/FindReflectionOnLineFixture.php', 24);
        $this->assertInstanceOf(ReflectionClass::class, $reflection);
        $this->assertSame('SomeFooInterface', $reflection->getName());
    }