Exemplo n.º 1
0
 public function get(LocatorInterface $locator)
 {
     if ($this->isLoaded === false) {
         $this->result = parent::get($locator);
         $this->isLoaded = true;
     }
     return $this->result;
 }
Exemplo n.º 2
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage ClassName must be string
  */
 public function testFactoryNotString()
 {
     ObjectFactory::factory(123);
 }