From c6223113a38e03080da0cac706b9658b6e71298f Mon Sep 17 00:00:00 2001 From: Vidya Raghavan Date: Wed, 18 Feb 2015 19:03:50 +0530 Subject: [PATCH 1/2] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index fdcd534..73cbbf1 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(15, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class From 727c4374966cc8f0529b81a7ca6200872353ebb9 Mon Sep 17 00:00:00 2001 From: Vidya Raghavan Date: Wed, 18 Feb 2015 19:06:04 +0530 Subject: [PATCH 2/2] Update shippable.yml --- shippable.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shippable.yml b/shippable.yml index bdf28fc..77412c1 100644 --- a/shippable.yml +++ b/shippable.yml @@ -13,11 +13,14 @@ before_script: script: - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php + install: true #script: true + before_archive: - ls - mv calculator.php shippable/src + - mv README.md shippable/ after_archive: - echo $SHIPPABLE_ARTIFACTS_URL - echo $ARTIFACTS_UPLOAD_SUCCESSFUL