本文整理汇总了PHP中PHPUnit_Framework_Assert::assertFileNotExists方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_Assert::assertFileNotExists方法的具体用法?PHP PHPUnit_Framework_Assert::assertFileNotExists怎么用?PHP PHPUnit_Framework_Assert::assertFileNotExists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Framework_Assert
的用法示例。
在下文中一共展示了PHPUnit_Framework_Assert::assertFileNotExists方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: assertFileNotExists
/**
* 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);
}
示例2: dontSeeFileFound
/**
* Checks if file does not exist in path
*
* @param $filename
* @param string $path
*/
public function dontSeeFileFound($filename, $path = '')
{
\PHPUnit_Framework_Assert::assertFileNotExists($path . $filename);
}
示例3: assertFileNotExists
/**
* Checks if file doesn't exist
*
* @param string $filename
* @param string $message
*/
protected function assertFileNotExists($filename, $message = '')
{
\PHPUnit_Framework_Assert::assertFileNotExists($filename, $message);
}
示例4: toExist
public function toExist()
{
if ($this->negate) {
a::assertFileNotExists($this->actual);
} else {
a::assertFileExists($this->actual);
}
}
示例5: shouldNotExist
public function shouldNotExist()
{
Assert::assertFileNotExists($this->it);
}
示例6: notExists
public function notExists()
{
if (!$this->isFileExpectation) {
throw new \Exception('notExists() expectation should be called with expect_file()');
}
a::assertFileNotExists($this->actual, $this->description);
}
示例7: notToExist
/**
* Expect that a file does not exist.
*
* @param string $message
*
* @return Expect
*/
public function notToExist($message = '')
{
Assert::assertFileNotExists($this->value, $message);
return $this;
}
示例8: assertVfsFileNotExists
/**
* Asserts that a vfs file does not exists.
*
* @param $filename
* @param string $message
*/
public function assertVfsFileNotExists($filename, $message = '')
{
PHPUnit::assertFileNotExists($this->getPath($filename), $message);
}
示例9: isNotExist
public function isNotExist()
{
Assert::assertFileNotExists($this->actual, $this->description);
return $this;
}
示例10: fileShoundNotExistInTestProject
/**
* @Then /^File "([^"]*)" shound not exist in test project$/
*/
public function fileShoundNotExistInTestProject($fileName)
{
PHPUnit_Framework_Assert::assertFileNotExists($this->testProjectPath . "/{$fileName}");
}