diff --git a/README.md b/README.md index 1bb43b4..f820ffa 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ $generator = function () { yield 2; }; -$reduce = static function ($carry, $item) { +$reduce = function ($carry, $item) { return $carry + $item; }; diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9ca55d7..ed2e5d0 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -17,12 +17,7 @@ > - tests/TestIsIterable.php - tests/TestIterableToArray.php - tests/TestIterableToTraversable.php - tests/TestIterableFilter.php - tests/TestIterableMap.php - tests/TestIterableObject.php + tests diff --git a/tests/TestIsIterable.php b/tests/IsIterableTest.php similarity index 95% rename from tests/TestIsIterable.php rename to tests/IsIterableTest.php index 8426ed8..7449010 100644 --- a/tests/TestIsIterable.php +++ b/tests/IsIterableTest.php @@ -2,7 +2,7 @@ use PHPUnit\Framework\TestCase; -class TestIsIterable extends TestCase +final class IsIterableTest extends TestCase { public function testFunctionExists() diff --git a/tests/TestIterableFilter.php b/tests/IterableFilterTest.php similarity index 90% rename from tests/TestIterableFilter.php rename to tests/IterableFilterTest.php index cd9d22e..e222545 100644 --- a/tests/TestIterableFilter.php +++ b/tests/IterableFilterTest.php @@ -1,6 +1,8 @@