Fixed assert
This commit is contained in:
parent
de078677fe
commit
2a7b7e7ac2
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue