/** * @covers TheSeer\phpDox\Factory::addFactory */ public function testAddFactory() { $factory = new Factory(); $factory->addFactory('Gnu', $factory); $actual = $this->readAttribute($factory, 'map'); $this->assertInstanceOf('TheSeer\\phpDox\\Factory', $actual['Gnu']); }