assertFileNotExists() public static method

Asserts that a file does not exist.
public static assertFileNotExists ( string $filename, string $message = '' )
$filename string
$message string
コード例 #1
0
ファイル: Functions.php プロジェクト: delkyd/sugarcrm_dev
/**
 * 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
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);
 }
コード例 #3
0
ファイル: Asserts.php プロジェクト: hitechdk/Codeception
 /**
  * Checks if file doesn't exist
  *  
  * @param string $filename
  * @param string $message
  */
 protected function assertFileNotExists($filename, $message = '')
 {
     \PHPUnit_Framework_Assert::assertFileNotExists($filename, $message);
 }
コード例 #4
0
ファイル: Expect.php プロジェクト: jasonmccreary/expect
 public function toExist()
 {
     if ($this->negate) {
         a::assertFileNotExists($this->actual);
     } else {
         a::assertFileExists($this->actual);
     }
 }
コード例 #5
0
ファイル: FileMatcher.php プロジェクト: pago/pantr
 public function shouldNotExist()
 {
     Assert::assertFileNotExists($this->it);
 }
コード例 #6
0
ファイル: Verify.php プロジェクト: jaschweder/Verify
 public function notExists()
 {
     if (!$this->isFileExpectation) {
         throw new \Exception('notExists() expectation should be called with expect_file()');
     }
     a::assertFileNotExists($this->actual, $this->description);
 }
コード例 #7
0
ファイル: Expect.php プロジェクト: jpkleemans/phpunit-expect
 /**
  * Expect that a file does not exist.
  *
  * @param string $message
  *
  * @return Expect
  */
 public function notToExist($message = '')
 {
     Assert::assertFileNotExists($this->value, $message);
     return $this;
 }
コード例 #8
0
ファイル: AssertionsTrait.php プロジェクト: newup/core
 /**
  * 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
0
ファイル: FileMatcher.php プロジェクト: dekeysoft/pu-tester
 public function isNotExist()
 {
     Assert::assertFileNotExists($this->actual, $this->description);
     return $this;
 }
コード例 #10
0
ファイル: FeatureContext.php プロジェクト: nonlux/bitapp
 /**
  * @Then /^File "([^"]*)" shound not exist in test project$/
  */
 public function fileShoundNotExistInTestProject($fileName)
 {
     PHPUnit_Framework_Assert::assertFileNotExists($this->testProjectPath . "/{$fileName}");
 }