Beispiel #1
0
 /**
  * Test object-lookup in the container.
  */
 public function testObj()
 {
     // Note: ResolverTestExampleService is implemented at the bottom of this file.
     \Civi::container()->set('callbackTestService', new ResolverTestExampleService());
     $obj = $this->resolver->get('obj://callbackTestService');
     $this->assertTrue($obj instanceof ResolverTestExampleService);
 }