Skip to content

Commit 2ad6f00

Browse files
authored
[TASK] Move DocumentTest to unit tests (#931)
Also fix some type annotation for the moved tests. Part of #758
1 parent 663992a commit 2ad6f00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/CSSList/DocumentTest.php renamed to tests/Unit/CSSList/DocumentTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Sabberworm\CSS\Tests\CSSList;
5+
namespace Sabberworm\CSS\Tests\Unit\CSSList;
66

77
use PHPUnit\Framework\TestCase;
88
use Sabberworm\CSS\Comment\Commentable;
@@ -50,7 +50,7 @@ public function getContentsInitiallyReturnsEmptyArray(): void
5050
}
5151

5252
/**
53-
* @return array<string, array<int, array<int, DeclarationBlock>>>
53+
* @return array<string, array{0: list<DeclarationBlock>}>
5454
*/
5555
public static function contentsDataProvider(): array
5656
{
@@ -64,7 +64,7 @@ public static function contentsDataProvider(): array
6464
/**
6565
* @test
6666
*
67-
* @param array<int, DeclarationBlock> $contents
67+
* @param list<DeclarationBlock> $contents
6868
*
6969
* @dataProvider contentsDataProvider
7070
*/

0 commit comments

Comments
 (0)