Пример #1
0
 /**
  * @depends testGetAdapter
  */
 public function testAclHasShorthandAdapterMethods()
 {
     $methods = get_class_methods($this->acl->getAdapter());
     foreach ($methods as $methodName) {
         $canBeCalled = is_callable([$this->acl, $methodName]);
         $this->assertTrue($canBeCalled);
     }
 }
Пример #2
0
 public function setUp()
 {
     $this->acl = DI::getDefault()->get('acl_mysql');
     $this->adapter = $this->acl->getAdapter();
 }