aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Wells <brucekwells@gmail.com>2019-01-16 04:12:24 +0300
committerBruce Wells <brucekwells@gmail.com>2019-01-16 04:12:24 +0300
commit2e847d6b8144ceabe95a5b369d5c2bc720770fc8 (patch)
treed7f98195ac18f8d874edb716f687a101e332161f
parent01a0c8e6270a3b1438cc77fafe3f18211f0fa46e (diff)
Fixed merge error
-rw-r--r--tests/MathTest.php15
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();