Changed phpunit configuration back

This commit is contained in:
Basilius Sauter
2016-04-19 21:58:44 +02:00
parent 6a72a43cda
commit 7643277cf7
3 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ abstract class ModelTestCase extends \PHPUnit_Extensions_Database_TestCase {
final public function getConnection() {
if($this->connection === null) {
if(self::$pdo === null) {
self::$pdo = new \PDO($GLOBALS['DB_DSN'], $GLOBALS["DB_USER"], $GLOBALS["DB_PASSWD"]);
self::$pdo = new \PDO($GLOBALS['DB_DSN'], $GLOBALS["DB_USER"], $GLOBALS["DB_PASSWORD"]);
// Read db annotations from model files
$configuration = Setup::createAnnotationMetadataConfiguration(["src/Models"], true);