/**
  * {@inheritdoc}
  */
 protected function initMink()
 {
     $this->minkDefaultDriverArgs = ['firefox', NULL, 'http://127.0.0.1:4444/wd/hub'];
     try {
         return BrowserTestBase::initMink();
     } catch (Exception $e) {
         $this->markTestSkipped('An unexpected error occurred while starting Mink: ' . $e->getMessage());
     }
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 protected function initMink()
 {
     // Set up the template cache used by the PhantomJS mink driver.
     $path = $this->tempFilesDirectory . DIRECTORY_SEPARATOR . 'browsertestbase-templatecache';
     $this->minkDefaultDriverArgs = ['http://127.0.0.1:8510', $path];
     if (!file_exists($path)) {
         mkdir($path);
     }
     return parent::initMink();
 }
 /**
  * {@inheritdoc}
  */
 protected function initMink()
 {
     // Set up the template cache used by the PhantomJS mink driver.
     $path = $this->tempFilesDirectory . DIRECTORY_SEPARATOR . 'browsertestbase-templatecache';
     $this->minkDefaultDriverArgs = ['http://127.0.0.1:8510', $path];
     if (!file_exists($path)) {
         mkdir($path);
     }
     try {
         return parent::initMink();
     } catch (DeadClient $e) {
         $this->markTestSkipped('PhantomJS is either not installed or not running. Start it via phantomjs --ssl-protocol=any --ignore-ssl-errors=true vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768&');
     } catch (\Exception $e) {
         $this->markTestSkipped('An unexpected error occurred while starting Mink: ' . $e->getMessage());
     }
 }