public static function PHPUnit_Framework_Assert::assertStringNotEqualsFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::assertStringNotEqualsFile()
Asserts that the contents of a string is not 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:
1 call to PHPUnit_Framework_Assert::assertStringNotEqualsFile()
- Framework_AssertTest::testAssertStringNotEqualsFile in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertStringNotEqualsFile
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 857
Class
- PHPUnit_Framework_Assert
- A set of assert methods.
Code
public static function assertStringNotEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = false, $ignoreCase = false) {
self::assertFileExists($expectedFile, $message);
self::assertNotEquals(file_get_contents($expectedFile), $actualString, $message, 0, 10, $canonicalize, $ignoreCase);
}