Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * @expectedException \BadMethodCallException
  */
 public function testErrorWhenUsingBaseClassDirectly()
 {
     StaticProxy::getInstanceIdentifier();
 }