public function testDoAuthentication() { throw new PHPUnit_Framework_IncompleteTestError(); // Not yet finished, Session won't start because of headers :( :( $authManager = new TAuthManager(); $authManager->setUserManager('users'); $authManager->init(null); $authManager->setLoginPage('LoginPage'); self::$app->raiseEvent('onAuthentication', self::$app, null); }
public function init($config) { if (!$this->_DBHandler) { throw new TConfigurationException('You must set DBHandler property!'); } if (!$this->_PermissionsTable) { throw new TConfigurationException('You must set PermissionsTable property!'); } parent::init($config); }