aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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();