You are here

public static function PHPUnit_Framework_Assert::assertFileEquals in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::assertFileEquals()

Asserts that the contents of one file is equal to the contents of another file.

@since Method available since Release 3.2.14

Parameters

string $expected:

string $actual:

string $message:

bool $canonicalize:

bool $ignoreCase:

1 call to PHPUnit_Framework_Assert::assertFileEquals()
Framework_AssertTest::testAssertFileEquals in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertFileEquals

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 777

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertFileEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false) {
  self::assertFileExists($expected, $message);
  self::assertFileExists($actual, $message);
  self::assertEquals(file_get_contents($expected), file_get_contents($actual), $message, 0, 10, $canonicalize, $ignoreCase);
}