Пример #1
0
 protected function setUp()
 {
     $url = PHPUNIT_TESTSUITE_EXTENSION_MAGENTO_HOST . '/api/v2_soap/index/?wsdl=1';
     $ch = curl_init($url);
     curl_setopt($ch, CURLOPT_TIMEOUT, 5);
     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
     $data = curl_exec($ch);
     $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
     curl_close($ch);
     if (!($httpCode >= 200 && $httpCode < 300)) {
         $this->markTestSkipped('Magento instance is not available');
     }
     parent::setUp();
 }
Пример #2
0
 protected function setUp()
 {
     parent::setUp();
     //to prevent timeout exception on step pages
     $this->setSeleniumServerRequestsTimeout((int) (MAX_EXECUTION_TIME / 1000));
 }