PhpBench\Tests\Unit\Benchmark\Remote\ReflectorTest::testReflector PHP Method

testReflector() public method

It should return information about a class in a different application.
public testReflector ( )
    public function testReflector()
    {
        $fname = __DIR__ . '/reflector/ExampleClass.php';
        $classHierarchy = $this->reflector->reflect($fname);
        $this->assertInstanceOf('PhpBench\\Benchmark\\Remote\\ReflectionHierarchy', $classHierarchy);
        $reflection = $classHierarchy->getTop();
        $this->assertInstanceOf('PhpBench\\Benchmark\\Remote\\ReflectionClass', $reflection);
        $this->assertEquals('\\PhpBench\\Tests\\Unit\\Benchmark\\reflector\\ExampleClass', $reflection->class);
        $this->assertContains('Some doc comment', $reflection->comment);
        $this->assertEquals($fname, $reflection->path);
        $this->assertEquals(['methodOne', 'methodTwo', 'provideParamsOne', 'provideParamsTwo', 'provideParamsNonScalar'], array_keys($reflection->methods));
        $this->assertContains('Method One Comment', $reflection->methods['methodOne']->comment);
    }