public static function 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:

boolean $canonicalize:

boolean $ignoreCase:

1 call to PHPUnit_Framework_Assert::assertStringNotEqualsFile()
Framework_AssertTest::testAssertStringNotEqualsFile in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertStringNotEqualsFile

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php, line 826

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);
}