Пример #1
0
 /**
  * Setups common environment for a test case.
  *
  * @since 1.0.0
  *
  * @access protected
  * @param \Codeception\TestCase $testCase The test case object.
  * @param string $name Test case name.
  * @param string $file The file name.
  */
 protected function _setupTestCase(TestCase $testCase, $name, $file)
 {
     $testCase->setBackupGlobals(false);
     $testCase->setBackupStaticAttributes(false);
     $testCase->setRunTestInSeparateProcess(false);
     $testCase->setInIsolation(false);
     $testCase->setPreserveGlobalState(false);
     if ($testCase instanceof Configurable) {
         $testCase->configName($name);
         $testCase->configFile($file);
         $testCase->initConfig();
     }
 }