Skip to content

Commit

Permalink
Add @covers annotations and : void return
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Oct 13, 2024
1 parent 0e01363 commit 9331d96
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/Unit/DiscoveredFilesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ class DiscoveredFilesTest extends TestCase
/**
* Tests that a file can be added and gotten.
*
* @return void
* @covers ::add
* @covers ::getFiles
*
* @author NikolayStrikhar
*/
public function testFileCanBeAddedAndGotten()
public function testFileCanBeAddedAndGotten(): void
{
// Arrange.

Expand All @@ -47,11 +48,12 @@ public function testFileCanBeAddedAndGotten()
/**
* Tests that multiple files with different paths can be added and gotten.
*
* @return void
* @covers ::add
* @covers ::getFiles
*
* @author NikolayStrikhar
*/
public function testFileMultipleFilesWithDifferentPathsCanBeAddedAndGotten()
public function testFileMultipleFilesWithDifferentPathsCanBeAddedAndGotten(): void
{
// Arrange.

Expand Down Expand Up @@ -82,11 +84,12 @@ public function testFileMultipleFilesWithDifferentPathsCanBeAddedAndGotten()
/**
* Tests that files are overwritten when they have the same path.
*
* @return void
* @covers ::add
* @covers ::getFiles
*
* @author NikolayStrikhar
*/
public function testFilesWithSamePathsAreOverwritten()
public function testFilesWithSamePathsAreOverwritten(): void
{
// Arrange.

Expand Down

0 comments on commit 9331d96

Please sign in to comment.