/** * Sets the Container object that provides the actual subjects' instances * * @param ContainerInterface $container Instance of a Container (or Service Locator) * * @return $this */ public function setContainer(ContainerInterface $container) { $this->container = $container; StaticProxy::setContainer($this->container); return $this; }
/** * @expectedException \BadMethodCallException */ public function testErrorWhenUsingBaseClassDirectly() { StaticProxy::getInstanceIdentifier(); }