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()); }
public function testToString() { $constraint = new PHPUnit_Extensions_Constraint_ArrayEqualsNoOrder(array(1, 2, 3)); PHPUnit_Extensions_Assert_More::assertStringMatchIgnoreWhitespace('has items Array ( 0 => 1 1 => 2 2 => 3 ) and count matches', $constraint->toString()); }
public function testToString() { $constraint = new PHPUnit_Extensions_Constraint_ArrayHasKeyValuePair('KEY', 'VALUE'); PHPUnit_Extensions_Assert_More::assertStringMatchIgnoreWhitespace("has the key 'KEY' with the value 'VALUE'", $constraint->toString()); }
/** * @expectedException PHPUnit_Framework_AssertionFailedError */ public function testAssertStringMatchIgnoreWhitespace_fails() { PHPUnit_Extensions_Assert_More::assertStringMatchIgnoreWhitespace("spaces do not matter", "but the not whitespace characters do!"); }