Fixed assert

This commit is contained in:
Marcin Kurczewski 2014-05-17 14:47:53 +02:00
parent de078677fe
commit 2a7b7e7ac2

View file

@ -38,13 +38,13 @@ class Assert
public function isNull($actual) public function isNull($actual)
{ {
if ($actual !== null) if ($actual !== null)
$this->fail('Assertion failed. Expected: NULL, got: "' . $this->dumpVar(actual) . '"'); $this->fail('Assertion failed. Expected: NULL, got: "' . $this->dumpVar($actual) . '"');
} }
public function isNotNull($actual) public function isNotNull($actual)
{ {
if ($actual === null) if ($actual === null)
$this->fail('Assertion failed. Expected: not NULL, got: "' . $this->dumpVar(actual) . '"'); $this->fail('Assertion failed. Expected: not NULL, got: "' . $this->dumpVar($actual) . '"');
} }
public function isTrue($actual) public function isTrue($actual)