|
9 | 9 | use PHPUnit\Framework\TestCase;
|
10 | 10 | use Sabberworm\CSS\Comment\Comment;
|
11 | 11 | use Sabberworm\CSS\Tests\Unit\Comment\Fixtures\ConcreteCommentContainer;
|
12 |
| -use TRegx\DataProvider\DataProviders; |
| 12 | +use TRegx\PhpUnit\DataProviders\DataProvider; |
13 | 13 |
|
14 | 14 | /**
|
15 | 15 | * @covers \Sabberworm\CSS\Comment\CommentContainer
|
@@ -114,19 +114,19 @@ public function provideAlternativeNonemptyCommentArray(): array
|
114 | 114 | * This provider crosses two comment arrays (0, 1 or 2 comments) with different comments,
|
115 | 115 | * so that all combinations can be tested.
|
116 | 116 | *
|
117 |
| - * @return array<non-empty-string, array{0: list<Comment>, 1: list<Comment>}> |
| 117 | + * @return DataProvider<non-empty-string, array{0: list<Comment>, 1: list<Comment>}> |
118 | 118 | */
|
119 |
| - public function provideTwoDistinctCommentArrays(): array |
| 119 | + public function provideTwoDistinctCommentArrays(): DataProvider |
120 | 120 | {
|
121 |
| - return DataProviders::cross($this->provideCommentArray(), $this->provideAlternativeCommentArray()); |
| 121 | + return DataProvider::cross($this->provideCommentArray(), $this->provideAlternativeCommentArray()); |
122 | 122 | }
|
123 | 123 |
|
124 | 124 | /**
|
125 |
| - * @return array<non-empty-string, array{0: list<Comment>, 1: non-empty-list<Comment>}> |
| 125 | + * @return DataProvider<non-empty-string, array{0: list<Comment>, 1: non-empty-list<Comment>}> |
126 | 126 | */
|
127 |
| - public function provideTwoDistinctCommentArraysWithSecondNonempty(): array |
| 127 | + public function provideTwoDistinctCommentArraysWithSecondNonempty(): DataProvider |
128 | 128 | {
|
129 |
| - return DataProviders::cross($this->provideCommentArray(), $this->provideAlternativeNonemptyCommentArray()); |
| 129 | + return DataProvider::cross($this->provideCommentArray(), $this->provideAlternativeNonemptyCommentArray()); |
130 | 130 | }
|
131 | 131 |
|
132 | 132 | private static function createContainsConstraint(Comment $comment): TraversableContains
|
|
0 commit comments