/** * @expectedException InvalidArgumentException */ public function testGetAnUndefinedFactory() { $manager = new FactoryManager(); $manager->set('foo', $this->getFactoryMock()); $manager->get('bar'); }