assertFileNotExists() public static method

Asserts that a file does not exist.
public static assertFileNotExists ( string $filename, string $message = '' )
$filename string
$message string
Beispiel #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);
}
 /**
  * Checks if file does not exist in path
  *
  * @param $filename
  * @param string $path
  */
 public function dontSeeFileFound($filename, $path = '')
 {
     \PHPUnit_Framework_Assert::assertFileNotExists($path . $filename);
 }
Beispiel #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);
 }
Beispiel #4
0
 public function toExist()
 {
     if ($this->negate) {
         a::assertFileNotExists($this->actual);
     } else {
         a::assertFileExists($this->actual);
     }
 }
Beispiel #5
0
 public function shouldNotExist()
 {
     Assert::assertFileNotExists($this->it);
 }
Beispiel #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);
 }
Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #9
0
 public function isNotExist()
 {
     Assert::assertFileNotExists($this->actual, $this->description);
     return $this;
 }
Beispiel #10
0
 /**
  * @Then /^File "([^"]*)" shound not exist in test project$/
  */
 public function fileShoundNotExistInTestProject($fileName)
 {
     PHPUnit_Framework_Assert::assertFileNotExists($this->testProjectPath . "/{$fileName}");
 }