cacert-testmgr/external/ZendFramework-1.9.5/tests/Zend/Acl/_files/MockAssertion.php
Markus Warg 8398c9048d initially import ZendFramework-1.9.5 into repository
code was modified slightly, so the code differs from the original downloadable 1.9.5 version
2010-03-31 10:12:32 +02:00

17 lines
No EOL
419 B
PHP

<?php
class Zend_Acl_MockAssertion implements Zend_Acl_Assert_Interface
{
protected $_returnValue;
public function __construct($returnValue)
{
$this->_returnValue = (bool) $returnValue;
}
public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role = null, Zend_Acl_Resource_Interface $resource = null,
$privilege = null)
{
return $this->_returnValue;
}
}