Skip to content

Commit

Permalink
Fix 3rd argument for assertEquals must be a string value rather than …
Browse files Browse the repository at this point in the history
…null
  • Loading branch information
MarkBaker committed Mar 18, 2018
1 parent 4518c96 commit 9f3bf9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unitTests/BaseFunctionTestAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function getAssertionPrecision($value)
protected function complexNumberAssertions($expected, $result)
{
if (is_numeric($expected)) {
$this->assertEquals($expected, (string) $result, null, $this->getAssertionPrecision($expected));
$this->assertEquals($expected, (string) $result, 'Numeric Assertion', $this->getAssertionPrecision($expected));
} else {
$expected = new Complex($expected);
$this->assertEquals(
Expand Down
2 changes: 1 addition & 1 deletion unitTests/classes/src/ComplexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function getAssertionPrecision($value)
public function complexNumberAssertions($expected, $result)
{
if (is_numeric($expected)) {
$this->assertEquals($expected, (string) $result, null, $this->getAssertionPrecision($expected));
$this->assertEquals($expected, (string) $result, 'Numeric Assertion', $this->getAssertionPrecision($expected));
} else {
$expected = new Complex($expected);
$this->assertEquals(
Expand Down

0 comments on commit 9f3bf9a

Please sign in to comment.