Exemple #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();
 }
Exemple #2
0
 public function test_getDatabaseName_is_string()
 {
     $setup = new Setup();
     $getDatabaseName = $setup->getDatabaseName();
     $this->assertInternalType('string', $getDatabaseName);
 }