Asserts that a file does not exist.
public static assertFileNotExists ( string $filename, string $message = '' ) | ||
$filename | string | |
$message | string |
/** * 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); }
/** * Checks if file doesn't exist * * @param string $filename * @param string $message */ protected function assertFileNotExists($filename, $message = '') { \PHPUnit_Framework_Assert::assertFileNotExists($filename, $message); }
public function toExist() { if ($this->negate) { a::assertFileNotExists($this->actual); } else { a::assertFileExists($this->actual); } }
public function shouldNotExist() { Assert::assertFileNotExists($this->it); }
public function notExists() { if (!$this->isFileExpectation) { throw new \Exception('notExists() expectation should be called with expect_file()'); } a::assertFileNotExists($this->actual, $this->description); }
/** * Expect that a file does not exist. * * @param string $message * * @return Expect */ public function notToExist($message = '') { Assert::assertFileNotExists($this->value, $message); return $this; }
/** * Asserts that a vfs file does not exists. * * @param $filename * @param string $message */ public function assertVfsFileNotExists($filename, $message = '') { PHPUnit::assertFileNotExists($this->getPath($filename), $message); }
public function isNotExist() { Assert::assertFileNotExists($this->actual, $this->description); return $this; }
/** * @Then /^File "([^"]*)" shound not exist in test project$/ */ public function fileShoundNotExistInTestProject($fileName) { PHPUnit_Framework_Assert::assertFileNotExists($this->testProjectPath . "/{$fileName}"); }