Permalink
Browse files

Visualize NULL properly.

  • Loading branch information...
1 parent 5e23b94 commit 1a9c17ee9583147444469d0c4b55a89fc5e1c9d6 @sebastianbergmann committed Sep 26, 2006
Showing with 7 additions and 1 deletion.
  1. +5 −0 PHPUnit/Samples/FailureTest.php
  2. +2 −1 PHPUnit/Util/Type.php
@@ -81,6 +81,11 @@ public function testAssertObjectEqualsObject()
$this->assertEquals($a, $b);
}
+ public function testAssertNullEqualsString()
+ {
+ $this->assertEquals(NULL, 'bar');
+ }
+
public function testAssertStringEqualsString()
{
$this->assertEquals('foo', 'bar');
View
@@ -75,7 +75,8 @@ public static function toString($value)
if (!is_null($value)) {
$type = gettype($value) . ':';
} else {
- $type = '';
+ $type = '';
+ $value = 'null';
}
if (is_bool($value)) {

0 comments on commit 1a9c17e

Please sign in to comment.