Exemplo n.º 1
0
 /**
  * Runs the tests and collects their result in a TestResult.
  *
  * @param \PHPUnit_Framework_TestResult $result
  * @return \PHPUnit_Framework_TestResult
  */
 public function run(PHPUnit_Framework_TestResult $result = null, $filter = false, array $groups = [], array $excludeGroups = [], $processIsolation = false)
 {
     $permutations = ['Identifier Quoting' => function () {
         ConnectionManager::get('test')->driver()->autoQuoting(true);
     }, 'No identifier quoting' => function () {
         ConnectionManager::get('test')->driver()->autoQuoting(false);
     }];
     foreach ($permutations as $permutation) {
         $permutation();
         $result = parent::run($result, $filter, $groups, $excludeGroups, $processIsolation);
     }
     return $result;
 }
Exemplo n.º 2
0
 /**
  * Runs the tests and collects their result in a TestResult.
  *
  * @param \PHPUnit_Framework_TestResult $result
  * @return \PHPUnit_Framework_TestResult
  */
 public function run(PHPUnit_Framework_TestResult $result = null)
 {
     $permutations = ['Identifier Quoting' => function () {
         ConnectionManager::get('test')->driver()->autoQuoting(true);
     }, 'No identifier quoting' => function () {
         ConnectionManager::get('test')->driver()->autoQuoting(false);
     }];
     foreach ($permutations as $permutation) {
         $permutation();
         $result = parent::run($result);
     }
     return $result;
 }