public function testAlias() { $manager = new Manager(); $this->descriptor->setManager($manager); $this->descriptor->load(new ReflectionClass('\\ClassC')); $this->descriptor->alias('descriptorAlias'); $this->assertEquals(spl_object_hash($this->descriptor->getReflectionClass()), spl_object_hash($manager->describe('descriptorAlias')->getReflectionClass())); }