function Assert::assertStringEqualsFileCanonicalizing
Asserts that the contents of a string is equal to the contents of a file (canonicalizing).
Throws
1 call to Assert::assertStringEqualsFileCanonicalizing()
- Functions.php in vendor/
phpunit/ phpunit/ src/ Framework/ Assert/ Functions.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 592
Class
- Assert
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\FrameworkCode
public static final function assertStringEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = '') : void {
static::assertFileExists($expectedFile, $message);
$constraint = new IsEqualCanonicalizing(file_get_contents($expectedFile));
static::assertThat($actualString, $constraint, $message);
}