lithium\test\Unit::assertStringNotMatchesFormat PHP Метод

assertStringNotMatchesFormat() публичный Метод

$this->assertStringNotMatchesFormat('%d', '10.555'); // succeeds $this->assertStringNotMatchesFormat('%d', '10'); // fails
См. также: lithium\test\Unit::assert()
public assertStringNotMatchesFormat ( string $expected, string $actual, string | boolean $message = '{:message}' ) : boolean
$expected string Expected format using sscanf's format.
$actual string
$message string | boolean
Результат boolean `true` if the assertion succeeded, `false` otherwise.
    public function assertStringNotMatchesFormat($expected, $actual, $message = '{:message}')
    {
        $result = sscanf($actual, $expected);
        return $this->assert($result[0] != $actual, $message, compact('expected', 'result'));
    }