BetterReflectionTest\Util\FindReflectionOnLineTest::testInvokeFindsTrait PHP Method

testInvokeFindsTrait() public method

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