Skip to content

Commit

Permalink
fix: make phpunit math test easier
Browse files Browse the repository at this point in the history
  • Loading branch information
elonmallin committed Nov 23, 2023
1 parent 08abd77 commit 87552c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/test/php-project/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
requireCoverageMetadata="false"
beStrictAboutCoverageMetadata="false"
beStrictAboutOutputDuringTests="false"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
failOnRisky="false"
failOnWarning="true"
colors="true">
Expand Down
4 changes: 2 additions & 2 deletions src/test/php-project/tests/Math/AdditionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class AdditionTest extends TestCase {
public function testAdd() {
$sut = new Addition();
$result = $sut->add(5, 3);
$this->assertEquals(8, $result);
$result = $sut->add(5, 5);
$this->assertEquals(10, $result);
}
}

0 comments on commit 87552c3

Please sign in to comment.