示例#1
0
 /**
  * @expectedException \OutOfBoundsException
  */
 public function testRemovingNonExistentEntryReturnsNull()
 {
     $this->coll->remove('testing_does_not_exist');
 }
示例#2
0
 /**
  * Unregister a service
  * @param string $name The service name
  * @return $this
  */
 public function unregisterService($name)
 {
     $this->services->remove($name);
     return $this;
 }