Exemplo n.º 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');
 }
Exemplo n.º 2
0
 private function checkRootFolder($rootFolder)
 {
     if (!($this->filesystem->is_dir($rootFolder) && $this->filesystem->is_readable($rootFolder))) {
         throw new ExtensionException(__CLASS__, '[rootFolder] parameter [' . $rootFolder . '] is not an existing and readable directory.');
     }
 }