예제 #1
0
 public function setUp()
 {
     $this->noPhpWebserver();
     $this->noSelenium();
     $this->module = new \Codeception\Module\Selenium();
     $url = '';
     if (strpos(PHP_VERSION, '5.4') === 0) {
         $url = 'http://localhost:8000';
     }
     // my local config.
     if ($this->is_local) {
         $url = 'http://testapp.com';
     }
     $this->module->_setConfig(array('url' => $url, 'browser' => 'firefox'));
     $this->module->_initialize();
     $this->module->_cleanup();
     $this->module->_before($this->makeTest());
 }
예제 #2
0
 public function setUp()
 {
     $this->noPhpWebserver();
     $this->noSelenium();
     $this->module = new \Codeception\Module\Selenium();
     $url = '';
     if (version_compare(PHP_VERSION, '5.4', '>=')) {
         $url = 'http://localhost:8000';
     }
     // my local config.
     if ($this->is_local) {
         $url = 'http://testapp.com';
     }
     $this->module->_setConfig(array('url' => $url, 'browser' => 'firefox'));
     // $this->markTestSkipped('lets test selenium2 instead');
     $this->module->_initialize();
     $this->module->_cleanup();
     $this->module->_before($this->makeTest());
 }