addTestFile(__DIR__ . DS . 'Database' . DS . 'ConnectionTest.php'); $suite->addTestDirectoryRecursive(__DIR__ . DS . 'Database'); $suite->addTestDirectoryRecursive(__DIR__ . DS . 'ORM'); return $suite; } /** * @param bool $preferCache * @return int */ public function count($preferCache = false) { return parent::count($preferCache) * 2; } /** * Runs the tests and collects their result in a TestResult. * * @param \PHPUnit\Framework\TestResult $result * @return \PHPUnit\Framework\TestResult */ public function run(TestResult $result = null) { $permutations = [ 'Identifier Quoting' => function () { ConnectionManager::get('test')->getDriver()->enableAutoQuoting(true); }, 'No identifier quoting' => function () { ConnectionManager::get('test')->getDriver()->enableAutoQuoting(false); }, ]; foreach ($permutations as $permutation) { $permutation(); $result = parent::run($result); } return $result; } }