Пример #1
0
 /**
  * Assert the file structure does not exist in the test filesystem.
  *
  * @param array $structure
  * @param string $prefix
  */
 protected function dontSeeGenerated(array $structure, $prefix = '')
 {
     foreach ($this->parseStructure($structure) as $key => $item) {
         if (is_array($item)) {
             $this->dontSeeGenerated($item, "{$prefix}/{$key}");
         } else {
             $url = vfsStream::url("test/build/{$prefix}/{$key}");
             assertFileNotExists($url);
             if ($item) {
                 assertStringMatchesFormat($item, file_get_contents($url));
             }
         }
     }
 }
Пример #2
0
 /**
  * @Given /^Cleanup files when it\'s all done$/
  */
 public function cleanupFilesWhenItSAllDone()
 {
     $this->package->cleanup();
     assertFileNotExists($this->pagesDir, 'Directory "' . $this->pagesDir . '" wasn\'t removed.');
 }
 /**
  * @Then Assert the file :arg1 not exists local
  * @param $filename
  */
 public function assertFileNotExists($filename)
 {
     assertFileNotExists($filename, sprintf("Asserting the file [%s] not exists local", $filename));
 }