Permalink
Browse files

- Merge [3988].

  • Loading branch information...
1 parent ff7a068 commit 509f1c12947c9b7c6cffb7f08e3765bcb80ded0d @sebastianbergmann committed Nov 8, 2008
Showing with 5 additions and 1 deletion.
  1. +5 −1 PHPUnit/Framework/Constraint/TraversableContains.php
@@ -97,7 +97,11 @@ public function evaluate($other)
*/
public function toString()
{
- return 'contains ' . PHPUnit_Util_Type::toString($this->value);
+ if (is_string($this->value) && strpos($this->value, "\n") !== FALSE) {
+ return 'contains "' . $this->value . '"';
+ } else {
+ return 'contains ' . PHPUnit_Util_Type::toString($this->value);
+ }
}
protected function customFailureDescription($other, $description, $not)

0 comments on commit 509f1c1

Please sign in to comment.