Пример #1
0
 protected function _before()
 {
     $this->filename = __DIR__ . DIRECTORY_SEPARATOR . basename(codecept_root_dir());
     $this->filesystem = $this->prophesize('tad\\WPBrowser\\Filesystem\\Filesystem');
     $this->filesystem->is_dir(__DIR__)->willReturn(true);
     $this->filesystem->is_writeable(__DIR__)->willReturn(true);
     $this->event = $this->prophesize('\\Codeception\\Event\\SuiteEvent');
     $this->printEvent = $this->prophesize('\\Codeception\\Event\\PrintResultEvent');
 }
Пример #2
0
 /**
  * @param $destination
  * @throws ExtensionException
  */
 protected function checkSingleDestination($destination)
 {
     if (!($this->filesystem->is_dir($destination) && $this->filesystem->is_writeable($destination))) {
         throw new ExtensionException(__CLASS__, '[destination] parameter [' . $destination . '] is not an existing and writeable directory.');
     }
 }