assertFileNotEquals() public static méthode

Asserts that the contents of one file is not equal to the contents of another file.
public static assertFileNotEquals ( string $expected, string $actual, string $message = '', boolean $canonicalize = false, boolean $ignoreCase = false )
$expected string
$actual string
$message string
$canonicalize boolean
$ignoreCase boolean
Exemple #1
0
 public function notEquals($expected)
 {
     if (!$this->isFileExpectation) {
         a::assertNotEquals($expected, $this->actual, $this->description);
     } else {
         a::assertFileNotEquals($expected, $this->actual, $this->description);
     }
 }
Exemple #2
0
/**
 * Asserts that the contents of one file is not equal to the contents of
 * another file.
 *
 * @param  string  $expected
 * @param  string  $actual
 * @param  string  $message
 * @param  boolean $canonicalize
 * @param  boolean $ignoreCase
 * @since  Method available since Release 3.2.14
 */
function assertFileNotEquals($expected, $actual, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE)
{
    return PHPUnit_Framework_Assert::assertFileNotEquals($expected, $actual, $message, $canonicalize, $ignoreCase);
}
Exemple #3
0
 /**
  * Asserts that the contents of one vfs file is not equal to the contents of
  * another vfs file.
  *
  * @param $expected
  * @param $actual
  * @param string $message
  * @param bool|false $canonicalize
  * @param bool|false $ignoreCase
  */
 public function assertVfsFileNotEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false)
 {
     PHPUnit::assertFileNotEquals($this->getPath($expected), $this->getPath($actual), $message, $canonicalize, $ignoreCase);
 }
Exemple #4
0
 /**
  * Expect that the contents of one file or a string is not equal to the contents of another file.
  *
  * @param string $expected
  * @param string $message
  * @param bool $canonicalize
  * @param bool $ignoreCase
  *
  * @return Expect
  */
 public function notToEqualFile($expected, $message = '', $canonicalize = false, $ignoreCase = false)
 {
     if (file_exists($this->value)) {
         // file
         Assert::assertFileNotEquals($expected, $this->value, $message, $canonicalize, $ignoreCase);
     } else {
         // string
         Assert::assertStringNotEqualsFile($expected, $this->value, $message, $canonicalize, $ignoreCase);
     }
     return $this;
 }
Exemple #5
0
 public function isNotEqualTo($file)
 {
     Assert::assertFileNotEquals($file, $this->actual, $this->description);
     return $this;
 }