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