コード例 #1
0
ファイル: ServerTest.php プロジェクト: fproject/phpamf
 /** @group ZF-11529 */
 public function testSettingAuthAdapterWithAclWhenServerAclAlreadyPopulatedWillNotChangeServerAcl()
 {
     $acl = new \fproject\amf\acl\Acl();
     $this->_server->setAcl($acl);
     $aclFile = dirname(__FILE__) . '/_files/acl.xml';
     $authAdapter = new XmlAuth($aclFile);
     $this->_server->setAuth($authAdapter);
     $this->assertNotSame($authAdapter->getAcl(), $this->_server->getAcl());
     $this->assertSame($acl, $this->_server->getAcl());
 }