Skip to content

Commit

Permalink
feat(cicd) : phpunit code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Loyant committed Sep 19, 2024
1 parent af8963d commit debb41d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/phpunit/BootstrapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class BootstrapTest extends TestCase
* Unit test.
*
* @return void
*
* @coversNothing
*/
public function test(): void
{
Expand Down
11 changes: 11 additions & 0 deletions Tests/phpunit/SplStringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ public function testConcatenate(): void
$this->assertSame('hello world', $instance());
}

/**
* Unit test.
*
* @return void
*/
public function testStringCast(): void
{
$instance = new DuckString('hello world');
$this->assertSame('hello world', (string) $instance);
}

/**
* Unit test.
*
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<directory>./Tests</directory>
<directory>./vendor</directory>
<file>./.php-cs-fixer.dist.php</file>
<file>./bootstrap.php</file>
</exclude>
<report>
<clover outputFile="build/logs/clover.xml"/>
Expand Down

0 comments on commit debb41d

Please sign in to comment.