public static function PHPUnit_Framework_Assert::assertStringNotMatchesFormat

Asserts that a string does not match a given format string.

@since Method available since Release 3.5.0

Parameters

string $format:

string $string:

string $message:

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

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertStringNotMatchesFormat($format, $string, $message = '') {
  if (!is_string($format)) {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
  }
  if (!is_string($string)) {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
  }
  $constraint = new PHPUnit_Framework_Constraint_Not(new PHPUnit_Framework_Constraint_StringMatches($format));
  self::assertThat($string, $constraint, $message);
}