Permalink
Browse files

Remove the instance stuff as we REALLY don't need it

  • Loading branch information...
redaxmedia committed Jul 21, 2018
1 parent 569e2c0 commit bd340dd03a5af4a8eb8d785b69df7b01e7e78879
Showing with 0 additions and 32 deletions.
  1. +0 −15 includes/Db.php
  2. +0 −17 tests/phpunit/DbTest.php
View
@@ -100,21 +100,6 @@ public static function init()
]);
}
/**
* get instance
*
* @since 4.0.0
*
* @param string $table name of the table
*
* @return self
*/
public static function getInstance(string $table = null) : self
{
return new self($table);
}
/**
* get the database status
*
View
@@ -117,23 +117,6 @@ public function testInit($configArray = [])
$this->assertInstanceOf('PDO', $actual);
}
/**
* testgetInstance
*
* @since 4.0.0
*/
public function testgetInstance()
{
/* actual */
$actual = Db::getInstance()->getDb();
/* compare */
$this->assertInstanceOf('PDO', $actual);
}
/**
* testGetStatus
*

0 comments on commit bd340dd

Please sign in to comment.