Пример #1
0
 /**
  * create FabricateFactory
  *
  * @param string $name name
  * @return FabricateAbstractFactory
  */
 private function factory($name)
 {
     $factory = FabricateFactory::create(self::getInstance()->registry->find($name));
     $factory->setConfig(self::getInstance()->config);
     return $factory;
 }
Пример #2
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testCreateThrowExceptionIfNotSupportInstance()
 {
     FabricateFactory::create('Not Supported');
 }