PHPUnit_Extensions_Assert_More::assertStringMatchIgnoreWhitespace PHP Method

assertStringMatchIgnoreWhitespace() public static method

Asserts that the two strings match but that all whitespaces are not necessarily equal.
public static assertStringMatchIgnoreWhitespace ( array $expected, array $actual, string $message = '' )
$expected array
$actual array
$message string
    public static function assertStringMatchIgnoreWhitespace($expected, $actual, $message = '')
    {
        PHPUnit_Framework_Assert::assertThat($actual, new PHPUnit_Extensions_Constraint_StringMatchIgnoreWhitespace($expected), $message);
    }

Usage Example

 public function testToString()
 {
     $constraint = new PHPUnit_Extensions_Constraint_HasItems(array(1, 2, 3));
     PHPUnit_Extensions_Assert_More::assertStringMatchIgnoreWhitespace('has items Array ( 0 => 1 1 => 2 2 => 3 )', $constraint->toString());
 }
All Usage Examples Of PHPUnit_Extensions_Assert_More::assertStringMatchIgnoreWhitespace