예제 #1
0
 public function setUp()
 {
     $this->dispatcher = new Symfony\Component\EventDispatcher\EventDispatcher();
     $this->testcase = new \Codeception\TestCase\Cept();
     $this->testcase->configDispatcher($this->dispatcher)->configName('mocked test')->configFile(\Codeception\Configuration::dataDir() . 'SimpleCept.php')->initConfig();
     \Codeception\SuiteManager::$modules['EmulateModuleHelper']->assertions = 0;
 }
예제 #2
0
 public function setUp()
 {
     $this->dispatcher = new Symfony\Component\EventDispatcher\EventDispatcher();
     $di = new \Codeception\Lib\Di();
     $this->moduleContainer = new \Codeception\Lib\ModuleContainer($di, []);
     \Codeception\Module\EmulateModuleHelper::$onlyActions = [];
     \Codeception\Module\EmulateModuleHelper::$excludeActions = [];
     $module = $this->moduleContainer->create('EmulateModuleHelper');
     $module->_initialize();
     $this->testcase = new \Codeception\TestCase\Cept();
     $this->testcase->configDispatcher($this->dispatcher)->configName('mocked test')->configFile(codecept_data_dir() . 'SimpleCept.php')->configDi($di)->configModules($this->moduleContainer)->initConfig();
 }