protected function getManager($prefix = null, $conn = true) { $m = new \SQRT\DB\Manager(); if ($prefix) { $m->setPrefix($prefix); } if ($conn) { $m->addConnection(TEST_HOST, TEST_USER, TEST_PASS, TEST_DB); } return $m; }
protected function getManager() { $m = new \SQRT\DB\Manager(); $m->addConnection(TEST_HOST, TEST_USER, TEST_PASS, TEST_DB); $m->setPrefix('test_'); return $m; }