public function testHierarchy()
{
$classHierarchy = $this->reflector->reflect(__DIR__ . '/reflector/Class3.php');
$this->assertInstanceOf('PhpBench\\Benchmark\\Remote\\ReflectionHierarchy', $classHierarchy);
$classHierarchy = iterator_to_array($classHierarchy);
$reflection = array_shift($classHierarchy);
$this->assertEquals('\\PhpBench\\Tests\\Unit\\Benchmark\\Remote\\reflector\\Class3', $reflection->class);
$reflection = array_shift($classHierarchy);
$this->assertEquals('PhpBench\\Tests\\Unit\\Benchmark\\Remote\\reflector\\Class2', $reflection->class);
$reflection = array_shift($classHierarchy);
$this->assertEquals('PhpBench\\Tests\\Unit\\Benchmark\\Remote\\reflector\\Class1', $reflection->class);
}