示例#1
0
 public function __construct()
 {
     $access = new Setup();
     $this->database = $access->getDatabase();
     $this->db_host = $access->getDatabaseHost();
     $this->db_user = $access->getDatabaseUser();
     $this->db_name = $access->getDatabaseName();
     $this->db_password = $access->getDatabasePassword();
     $this->driver = $this->driver();
 }
示例#2
0
 public function test_getDatabaseHost_is_string()
 {
     $setup = new Setup();
     $getDatabaseHost = $setup->getDatabaseHost();
     $this->assertInternalType('string', $getDatabaseHost);
 }