assertStringNotMatchesFormat() public static method

Asserts that a string does not match a given format string.
public static assertStringNotMatchesFormat ( string $format, string $string, string $message = '' )
$format string
$string string
$message string
Example #1
0
/**
 * Asserts that a string does not match a given format string.
 *
 * @param  string $format
 * @param  string $string
 * @param  string $message
 * @since  Method available since Release 3.5.0
 */
function assertStringNotMatchesFormat($format, $string, $message = '')
{
    return PHPUnit_Framework_Assert::assertStringNotMatchesFormat($format, $string, $message);
}
Example #2
0
 public function toMatchFormat($format)
 {
     if ($this->negate) {
         a::assertStringNotMatchesFormat($format, $this->actual);
     } else {
         a::assertStringMatchesFormat($format, $this->actual);
     }
 }
Example #3
0
 public function notMatchesFormat($format)
 {
     a::assertStringNotMatchesFormat($format, $this->actual, $this->description);
 }
Example #4
0
 public function doesNotMatchFormat($format)
 {
     Assert::assertStringNotMatchesFormat($format, $this->actual, $this->description);
     return $this;
 }
Example #5
0
 /**
  * Expect that a string does not match a given format string.
  *
  * @param string $format
  * @param string $message
  *
  * @return Expect
  */
 public function notToMatchFormat($format, $message = '')
 {
     Assert::assertStringNotMatchesFormat($format, $this->value, $message);
     return $this;
 }