示例#1
0
 public function testAddAndGetService()
 {
     $new_service = $this->getMockBuilder(InterfaceService::class)->getMock();
     $this->object->addService('test_service', $new_service);
     $this->assertSame($new_service, $this->object->getService('test_service'));
     $this->assertInstanceOf(InterfaceService::class, $this->object->getService('test_service'));
 }