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 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