You are here

public static function PHPUnit_Framework_Assert::assertStringEqualsFile in Zircon Profile 8

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

Asserts that the contents of a string is equal to the contents of a file.

@since Method available since Release 3.3.0

Parameters

string $expectedFile:

string $actualString:

string $message:

bool $canonicalize:

bool $ignoreCase:

2 calls to PHPUnit_Framework_Assert::assertStringEqualsFile()
Framework_AssertTest::testAssertStringEqualsFile in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertStringEqualsFile
SymfonyStyleTest::testOutputs in vendor/symfony/console/Tests/Style/SymfonyStyleTest.php
@dataProvider inputCommandToOutputFilesProvider

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertStringEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = false, $ignoreCase = false) {
  self::assertFileExists($expectedFile, $message);
  self::assertEquals(file_get_contents($expectedFile), $actualString, $message, 0, 10, $canonicalize, $ignoreCase);
}