예제 #1
0
파일: Ini.php 프로젝트: btweedy/foresmo
 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();
 }
예제 #2
0
파일: Sql.php 프로젝트: btweedy/foresmo
 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();
 }
예제 #3
0
파일: Mail.php 프로젝트: btweedy/foresmo
 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function setup()
 {
     parent::setup();
 }
예제 #4
0
파일: None.php 프로젝트: btweedy/foresmo
 public function setup()
 {
     $this->_handle = null;
     parent::setup();
 }
예제 #5
0
 public function setup()
 {
     $dir = Solar_Class::dir('Test_Solar_Auth_Adapter', '_support');
     $this->_config['file'] = $dir . 'users.htpasswd';
     parent::setup();
 }