PHPUnit_Framework_Assert::assertFileNotEquals PHP Method

assertFileNotEquals() public static method

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
    public static function assertFileNotEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false)
    {
        static::assertFileExists($expected, $message);
        static::assertFileExists($actual, $message);
        static::assertNotEquals(file_get_contents($expected), file_get_contents($actual), $message, 0, 10, $canonicalize, $ignoreCase);
    }

Usage Example

Example #1
0
 public function notEquals($expected)
 {
     if (!$this->isFileExpectation) {
         a::assertNotEquals($expected, $this->actual, $this->description);
     } else {
         a::assertFileNotEquals($expected, $this->actual, $this->description);
     }
 }
All Usage Examples Of PHPUnit_Framework_Assert::assertFileNotEquals
PHPUnit_Framework_Assert