Пример #1
0
 protected function createTemporaryServer()
 {
     $path = parent::createTemporaryServer();
     $this->serverScript = file_get_contents($path);
     unlink($path);
     return '/path/to/server';
 }
Пример #2
0
 protected function createTemporaryServer()
 {
     // If the driver is running in a phar, we need to create a temporary script
     // outside the phar to be usable by node. Otherwise, we use the script directly
     // as this gives a better user experience when zombie is installed locally
     // in the project using the driver (as node will be able to find zombie without
     // having to configure the node modules path).
     if ('phar:' === substr(__DIR__, 0, 5)) {
         return parent::createTemporaryServer();
     }
     return realpath(__DIR__ . '/../../../bin/mink-zombie-server.js');
 }