public function testAdd() { $descriptor = new Descriptor(); $descriptor->setManager($this->manager); $descriptor->load(new \ReflectionClass('ClassF')); $this->manager->add($descriptor); $this->assertEquals($descriptor, $this->manager->describe('ClassF')); }
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())); }