diff options
author | Bruce Wells <brucekwells@gmail.com> | 2019-01-16 04:12:24 +0300 |
---|---|---|
committer | Bruce Wells <brucekwells@gmail.com> | 2019-01-16 04:12:24 +0300 |
commit | 2e847d6b8144ceabe95a5b369d5c2bc720770fc8 (patch) | |
tree | d7f98195ac18f8d874edb716f687a101e332161f /tests | |
parent | 01a0c8e6270a3b1438cc77fafe3f18211f0fa46e (diff) |
Fixed merge error
Diffstat (limited to 'tests')
-rw-r--r-- | tests/MathTest.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/MathTest.php b/tests/MathTest.php index 09168c2..3cf4dbd 100644 --- a/tests/MathTest.php +++ b/tests/MathTest.php @@ -138,24 +138,11 @@ class MathTest extends \PHPUnit_Framework_TestCase { $calculator = new MathExecutor(); - $calculator->addFunction('concat', function ($arg1, $arg2) - { - return $arg1.$arg2; - } - ); + $calculator->addFunction('concat', function ($arg1, $arg2) {return $arg1.$arg2;}); $this->assertEquals('testing', $calculator->execute('concat("test","ing")')); $this->assertEquals('testing', $calculator->execute("concat('test','ing')")); } - public function testFunctionParameterOrder() - { - $calculator = new MathExecutor(); - - $calculator->addFunction('concat', function ($arg1, $arg2) {return $arg1.$arg2;}); - $this->assertEquals('testing', $calculator->execute('concat("test","ing")')); - $this->assertEquals('testing', $calculator->execute("concat('test','ing')")); - } - public function testFunction() { $calculator = new MathExecutor(); |