From 9331d966721ca70eebd6675c11771e6c09f4cc3e Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Sat, 12 Oct 2024 18:09:39 -0700 Subject: [PATCH] Add `@covers` annotations and `: void` return --- tests/Unit/DiscoveredFilesTest.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/Unit/DiscoveredFilesTest.php b/tests/Unit/DiscoveredFilesTest.php index bec17bf4..feb00289 100644 --- a/tests/Unit/DiscoveredFilesTest.php +++ b/tests/Unit/DiscoveredFilesTest.php @@ -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. @@ -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. @@ -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.