/** * @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); } }
public function setUp() { $this->acl = DI::getDefault()->get('acl_mysql'); $this->adapter = $this->acl->getAdapter(); }