diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 0a14fc40..1446eb04 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -101,17 +101,17 @@ parameters: path: src/DataProvider/BooleanProvider.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\BooleanProvider\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\BooleanProvider\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: src/DataProvider/BooleanProvider.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\BooleanProvider\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\BooleanProvider\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: src/DataProvider/BooleanProvider.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\BooleanProvider\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\BooleanProvider\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: src/DataProvider/BooleanProvider.php @@ -216,17 +216,17 @@ parameters: path: src/DataProvider/NullProvider.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\NullProvider\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\NullProvider\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: src/DataProvider/NullProvider.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\NullProvider\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\NullProvider\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: src/DataProvider/NullProvider.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\NullProvider\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\NullProvider\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: src/DataProvider/NullProvider.php @@ -331,17 +331,17 @@ parameters: path: src/DataProvider/StringProvider.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: src/DataProvider/StringProvider.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: src/DataProvider/StringProvider.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: src/DataProvider/StringProvider.php @@ -431,17 +431,17 @@ parameters: path: test/AutoReview/SrcCodeTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\SrcCodeTest\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\SrcCodeTest\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/AutoReview/SrcCodeTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\SrcCodeTest\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\SrcCodeTest\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/AutoReview/SrcCodeTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\SrcCodeTest\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\SrcCodeTest\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/AutoReview/SrcCodeTest.php @@ -531,17 +531,17 @@ parameters: path: test/AutoReview/TestCodeTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\TestCodeTest\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\TestCodeTest\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/AutoReview/TestCodeTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\TestCodeTest\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\TestCodeTest\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/AutoReview/TestCodeTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\TestCodeTest\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\AutoReview\\\\TestCodeTest\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/AutoReview/TestCodeTest.php @@ -631,17 +631,17 @@ parameters: path: test/Unit/Exception/EmptyValuesTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\EmptyValuesTest\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\EmptyValuesTest\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/EmptyValuesTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\EmptyValuesTest\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\EmptyValuesTest\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/EmptyValuesTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\EmptyValuesTest\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\EmptyValuesTest\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/EmptyValuesTest.php @@ -731,17 +731,17 @@ parameters: path: test/Unit/Exception/InvalidExcludeClassNameTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\InvalidExcludeClassNameTest\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\InvalidExcludeClassNameTest\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/InvalidExcludeClassNameTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\InvalidExcludeClassNameTest\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\InvalidExcludeClassNameTest\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/InvalidExcludeClassNameTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\InvalidExcludeClassNameTest\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\InvalidExcludeClassNameTest\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/InvalidExcludeClassNameTest.php @@ -831,17 +831,17 @@ parameters: path: test/Unit/Exception/NonExistentDirectoryTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentDirectoryTest\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentDirectoryTest\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/NonExistentDirectoryTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentDirectoryTest\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentDirectoryTest\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/NonExistentDirectoryTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentDirectoryTest\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentDirectoryTest\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/NonExistentDirectoryTest.php @@ -931,17 +931,17 @@ parameters: path: test/Unit/Exception/NonExistentExcludeClassTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentExcludeClassTest\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentExcludeClassTest\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/NonExistentExcludeClassTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentExcludeClassTest\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentExcludeClassTest\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/NonExistentExcludeClassTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentExcludeClassTest\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\Exception\\\\NonExistentExcludeClassTest\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/Exception/NonExistentExcludeClassTest.php @@ -1031,17 +1031,17 @@ parameters: path: test/Unit/HelperTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:provide\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/HelperTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:provideWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/HelperTest.php - - message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:provideWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" + message: "#^Method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#" count: 1 path: test/Unit/HelperTest.php diff --git a/src/DataProvider/BooleanProvider.php b/src/DataProvider/BooleanProvider.php index 30cb7ab3..84980a99 100644 --- a/src/DataProvider/BooleanProvider.php +++ b/src/DataProvider/BooleanProvider.php @@ -24,7 +24,7 @@ final class BooleanProvider */ public static function arbitrary(): \Generator { - yield from self::provide(self::values()); + yield from self::provideDataForValues(self::values()); } /** @@ -32,7 +32,7 @@ public static function arbitrary(): \Generator */ public static function false(): \Generator { - yield from self::provideWhere(self::values(), static function (bool $value): bool { + yield from self::provideDataForValuesWhere(self::values(), static function (bool $value): bool { return false === $value; }); } @@ -42,7 +42,7 @@ public static function false(): \Generator */ public static function true(): \Generator { - yield from self::provideWhere(self::values(), static function (bool $value): bool { + yield from self::provideDataForValuesWhere(self::values(), static function (bool $value): bool { return true === $value; }); } diff --git a/src/DataProvider/NullProvider.php b/src/DataProvider/NullProvider.php index 3c9475a8..1db01024 100644 --- a/src/DataProvider/NullProvider.php +++ b/src/DataProvider/NullProvider.php @@ -24,7 +24,7 @@ final class NullProvider */ public static function null(): \Generator { - yield from self::provide([ + yield from self::provideDataForValues([ 'null' => null, ]); } diff --git a/src/DataProvider/StringProvider.php b/src/DataProvider/StringProvider.php index a4658dfb..fe26154b 100644 --- a/src/DataProvider/StringProvider.php +++ b/src/DataProvider/StringProvider.php @@ -24,7 +24,7 @@ final class StringProvider */ public static function arbitrary(): \Generator { - yield from self::provideWhereNot(self::values(), static function (string $value): bool { + yield from self::provideDataForValuesWhereNot(self::values(), static function (string $value): bool { return '' === \trim($value); }); } @@ -34,7 +34,7 @@ public static function arbitrary(): \Generator */ public static function blank(): \Generator { - yield from self::provideWhere(self::values(), static function (string $value): bool { + yield from self::provideDataForValuesWhere(self::values(), static function (string $value): bool { return '' === \trim($value) && '' !== $value; }); @@ -45,7 +45,7 @@ public static function blank(): \Generator */ public static function empty(): \Generator { - yield from self::provideWhere(self::values(), static function (string $value): bool { + yield from self::provideDataForValuesWhere(self::values(), static function (string $value): bool { return '' === $value; }); } @@ -55,7 +55,7 @@ public static function empty(): \Generator */ public static function untrimmed(): \Generator { - yield from self::provideWhere(self::values(), static function (string $value): bool { + yield from self::provideDataForValuesWhere(self::values(), static function (string $value): bool { return \trim($value) !== $value && '' !== \trim($value); }); diff --git a/src/Helper.php b/src/Helper.php index 361487b2..a17a6be3 100644 --- a/src/Helper.php +++ b/src/Helper.php @@ -452,7 +452,7 @@ final protected static function assertTraitSatisfiesSpecification(callable $spec * * @return \Generator */ - final protected static function provide(array $values): \Generator + final protected static function provideDataForValues(array $values): \Generator { if ([] === $values) { throw Exception\EmptyValues::create(); @@ -473,7 +473,7 @@ final protected static function provide(array $values): \Generator * * @return \Generator */ - final protected static function provideWhere(array $values, \Closure $test): \Generator + final protected static function provideDataForValuesWhere(array $values, \Closure $test): \Generator { if ([] === $values) { throw Exception\EmptyValues::create(); @@ -487,7 +487,7 @@ final protected static function provideWhere(array $values, \Closure $test): \Ge throw Exception\EmptyValues::filtered(); } - yield from self::provide($filtered); + yield from self::provideDataForValues($filtered); } /** @@ -498,7 +498,7 @@ final protected static function provideWhere(array $values, \Closure $test): \Ge * * @return \Generator */ - final protected static function provideWhereNot(array $values, \Closure $test): \Generator + final protected static function provideDataForValuesWhereNot(array $values, \Closure $test): \Generator { if ([] === $values) { throw Exception\EmptyValues::create(); @@ -512,6 +512,6 @@ final protected static function provideWhereNot(array $values, \Closure $test): throw Exception\EmptyValues::filtered(); } - yield from self::provide($filtered); + yield from self::provideDataForValues($filtered); } } diff --git a/test/Unit/HelperTest.php b/test/Unit/HelperTest.php index b3271834..9bb05293 100644 --- a/test/Unit/HelperTest.php +++ b/test/Unit/HelperTest.php @@ -1314,18 +1314,18 @@ static function (): bool { ); } - public function testProvideReturnsGeneratorThatRejectsEmptyValues(): void + public function testProvideDataForValuesReturnsGeneratorThatRejectsEmptyValues(): void { $values = []; - $provided = self::provide($values); + $provided = self::provideDataForValues($values); $this->expectException(Exception\EmptyValues::class); \iterator_to_array($provided); } - public function testProvideReturnsGeneratorThatProvidesValues(): void + public function testProvideDataForValuesReturnsGeneratorThatProvidesValues(): void { $faker = self::faker(); @@ -1335,7 +1335,7 @@ public function testProvideReturnsGeneratorThatProvidesValues(): void 'baz' => $faker->sentence, ]; - $provided = self::provide($values); + $provided = self::provideDataForValues($values); $expected = \array_map(static function ($value): array { return [ @@ -1346,11 +1346,11 @@ public function testProvideReturnsGeneratorThatProvidesValues(): void self::assertSame($expected, \iterator_to_array($provided)); } - public function testProvideWhereReturnsGeneratorThatRejectsEmptyValues(): void + public function testDataForValuesWhereReturnsGeneratorThatRejectsEmptyValues(): void { $values = []; - $provided = self::provideWhere($values, static function (int $value): bool { + $provided = self::provideDataForValuesWhere($values, static function (int $value): bool { return 3 > $value; }); @@ -1359,7 +1359,7 @@ public function testProvideWhereReturnsGeneratorThatRejectsEmptyValues(): void \iterator_to_array($provided); } - public function testProvideWhereReturnsGeneratorThatRejectsEmptyFilteredValues(): void + public function testProvideDataForValuesWhereReturnsGeneratorThatRejectsEmptyFilteredValues(): void { $values = [ 'foo' => 3, @@ -1368,7 +1368,7 @@ public function testProvideWhereReturnsGeneratorThatRejectsEmptyFilteredValues() 'qux' => 13, ]; - $provided = self::provideWhere($values, static function (int $value): bool { + $provided = self::provideDataForValuesWhere($values, static function (int $value): bool { return 3 > $value; }); @@ -1377,7 +1377,7 @@ public function testProvideWhereReturnsGeneratorThatRejectsEmptyFilteredValues() \iterator_to_array($provided); } - public function testProvideWhereReturnsGeneratorThatProvidesValuesWhereTestReturnsFalse(): void + public function testProvideDataForValuesWhereReturnsGeneratorThatProvidesValuesWhereTestReturnsFalse(): void { $values = [ 'foo' => 1, @@ -1391,7 +1391,7 @@ public function testProvideWhereReturnsGeneratorThatProvidesValuesWhereTestRetur 'bar' => 2, ]; - $provided = self::provideWhere($values, static function (int $value): bool { + $provided = self::provideDataForValuesWhere($values, static function (int $value): bool { return 3 > $value; }); @@ -1404,11 +1404,11 @@ public function testProvideWhereReturnsGeneratorThatProvidesValuesWhereTestRetur self::assertSame($expected, \iterator_to_array($provided)); } - public function testProvideWhereNotReturnsGeneratorThatRejectsEmptyValues(): void + public function testProvideDataForValuesWhereNotReturnsGeneratorThatRejectsEmptyValues(): void { $values = []; - $provided = self::provideWhereNot($values, static function (int $value): bool { + $provided = self::provideDataForValuesWhereNot($values, static function (int $value): bool { return 3 > $value; }); @@ -1416,7 +1416,7 @@ public function testProvideWhereNotReturnsGeneratorThatRejectsEmptyValues(): voi \iterator_to_array($provided); } - public function testProvideWhereNotReturnsGeneratorThatRejectsEmptyFilteredValues(): void + public function testProvideDataForValuesWhereNotReturnsGeneratorThatRejectsEmptyFilteredValues(): void { $values = [ 'foo' => 0, @@ -1424,7 +1424,7 @@ public function testProvideWhereNotReturnsGeneratorThatRejectsEmptyFilteredValue 'baz' => 2, ]; - $provided = self::provideWhereNot($values, static function (int $value): bool { + $provided = self::provideDataForValuesWhereNot($values, static function (int $value): bool { return 3 > $value; }); @@ -1447,7 +1447,7 @@ public function testProvideWhereNotReturnsGeneratorThatProvidesValuesWhereTestRe 'qux' => 5, ]; - $provided = self::provideWhereNot($values, static function (int $value): bool { + $provided = self::provideDataForValuesWhereNot($values, static function (int $value): bool { return 3 > $value; });