getService() public method

public getService ( $id )
示例#1
0
 /**
  * @expectedException InvalidArgumentException
  * @expectedExceptionMessage There is no service defined with id [abc]
  */
 public function _testGetServiceWithoutSet()
 {
     $this->context->getService('abc');
 }