Пример #1
0
 protected function _preConfig()
 {
     parent::_preConfig();
     $dir = Solar_Class::dir('Mock_Solar_Auth_Adapter_Htpasswd');
     $file = $dir . 'users.htpasswd';
     $this->_Test_Solar_Auth_Adapter_Htpasswd['file'] = $file;
 }
Пример #2
0
 protected function _postConstruct()
 {
     parent::_postConstruct();
     $this->_moniker = 'Paul M. Jones';
     $this->_email = '*****@*****.**';
     $this->_uri = 'http://paul-m-jones.com';
 }
Пример #3
0
 public function setup()
 {
     $dir = Solar_Class::dir('Test_Solar_Auth_Adapter', '_support');
     $this->_config['file'] = $dir . 'users.ini';
     $this->_moniker = 'Paul M. Jones';
     $this->_email = '*****@*****.**';
     $this->_uri = 'http://paul-m-jones.com';
     parent::setup();
 }
Пример #4
0
 public function setup()
 {
     $this->_sql = Solar::factory('Solar_Sql', array('adapter' => 'Solar_Sql_Adapter_Sqlite', 'name' => ':memory:'));
     $cmd = "CREATE TABLE members (" . "    handle VARCHAR(255)," . "    passwd CHAR(32)," . "    email VARCHAR(255)," . "    moniker VARCHAR(255)," . "    uri VARCHAR(255)" . ")";
     $this->_sql->query($cmd);
     $dir = Solar_Class::dir('Test_Solar_Auth_Adapter', '_support');
     $insert = parse_ini_file($dir . 'users.ini', true);
     foreach ($insert as $handle => $data) {
         $data['handle'] = $handle;
         $data['passwd'] = hash('md5', $data['passwd']);
         $this->_sql->insert('members', $data);
     }
     $this->_moniker = 'Paul M. Jones';
     $this->_email = '*****@*****.**';
     $this->_uri = 'http://paul-m-jones.com';
     $this->_config['sql'] = $this->_sql;
     $this->_config['table'] = 'members';
     $this->_config['email_col'] = 'email';
     $this->_config['moniker_col'] = 'moniker';
     $this->_config['uri_col'] = 'uri';
     parent::setup();
 }
Пример #5
0
 /**
  * 
  * Setup; runs after each test method.
  * 
  */
 public function teardown()
 {
     parent::teardown();
 }
Пример #6
0
 public function setup()
 {
     $this->_handle = null;
     parent::setup();
 }
Пример #7
0
 public function preTest()
 {
     $this->_handle = null;
     parent::preTest();
 }
Пример #8
0
 public function setup()
 {
     $dir = Solar_Class::dir('Test_Solar_Auth_Adapter', '_support');
     $this->_config['file'] = $dir . 'users.htpasswd';
     parent::setup();
 }