From 9f3bf9a3b35ad3aeeb450cc31ad9ba796c9914d0 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 18 Mar 2018 22:52:59 +0000 Subject: [PATCH] Fix 3rd argument for assertEquals must be a string value rather than null --- unitTests/BaseFunctionTestAbstract.php | 2 +- unitTests/classes/src/ComplexTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unitTests/BaseFunctionTestAbstract.php b/unitTests/BaseFunctionTestAbstract.php index 11eb6bf..8b25202 100644 --- a/unitTests/BaseFunctionTestAbstract.php +++ b/unitTests/BaseFunctionTestAbstract.php @@ -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( diff --git a/unitTests/classes/src/ComplexTest.php b/unitTests/classes/src/ComplexTest.php index 0f617d4..92283ef 100644 --- a/unitTests/classes/src/ComplexTest.php +++ b/unitTests/classes/src/ComplexTest.php @@ -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(