assertFileNotExists() public static method

Asserts that a file does not exist.
public static assertFileNotExists ( string $filename, string $message = '' )
$filename string
$message string
Example #1
0
/**
 * Asserts that a file does not exist.
 *
 * @param  string $filename
 * @param  string $message
 * @since  Method available since Release 3.0.0
 */
function assertFileNotExists($filename, $message = '')
{
    return PHPUnit_Framework_Assert::assertFileNotExists($filename, $message);
}
Example #2
0
 /**
  * Checks if file does not exist in path
  *
  * @param $filename
  * @param string $path
  */
 public function dontSeeFileFound($filename, $path = '')
 {
     \PHPUnit_Framework_Assert::assertFileNotExists($path . $filename);
 }
Example #3
0
 /**
  * Checks if file doesn't exist
  *  
  * @param string $filename
  * @param string $message
  */
 protected function assertFileNotExists($filename, $message = '')
 {
     \PHPUnit_Framework_Assert::assertFileNotExists($filename, $message);
 }
Example #4
0
 public function toExist()
 {
     if ($this->negate) {
         a::assertFileNotExists($this->actual);
     } else {
         a::assertFileExists($this->actual);
     }
 }
Example #5
0
 public function shouldNotExist()
 {
     Assert::assertFileNotExists($this->it);
 }
Example #6
0
 public function notExists()
 {
     if (!$this->isFileExpectation) {
         throw new \Exception('notExists() expectation should be called with expect_file()');
     }
     a::assertFileNotExists($this->actual, $this->description);
 }
Example #7
0
 /**
  * Expect that a file does not exist.
  *
  * @param string $message
  *
  * @return Expect
  */
 public function notToExist($message = '')
 {
     Assert::assertFileNotExists($this->value, $message);
     return $this;
 }
Example #8
0
 /**
  * Asserts that a vfs file does not exists.
  *
  * @param $filename
  * @param string $message
  */
 public function assertVfsFileNotExists($filename, $message = '')
 {
     PHPUnit::assertFileNotExists($this->getPath($filename), $message);
 }
Example #9
0
 public function isNotExist()
 {
     Assert::assertFileNotExists($this->actual, $this->description);
     return $this;
 }
Example #10
0
 /**
  * @Then /^File "([^"]*)" shound not exist in test project$/
  */
 public function fileShoundNotExistInTestProject($fileName)
 {
     PHPUnit_Framework_Assert::assertFileNotExists($this->testProjectPath . "/{$fileName}");
 }