From 880d3811c9fb1f31e28f0b03344cc7cf2fc025ac Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Sat, 15 Jan 2022 15:17:14 +0900 Subject: [PATCH] Remove pre-PHP 7.1 check --- tests/IterableTest.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tests/IterableTest.php b/tests/IterableTest.php index 946d1a9..4de7a4e 100644 --- a/tests/IterableTest.php +++ b/tests/IterableTest.php @@ -32,28 +32,6 @@ */ final class IterableTest extends TestCase { - private static $usesIterable; - - public static function setUpBeforeClass(): void - { - if (PHP_VERSION_ID < 70100) { - self::$usesIterable = false; - - return; - } - - $reflection = new ReflectionClass(Standard::class); - $type = $reflection->getConstructor()->getParameters()[0]->getType(); - self::$usesIterable = $type->isBuiltin(); // Traversable isn't builtin - } - - protected function setUp(): void - { - if (!self::$usesIterable) { - $this->markTestSkipped('Not testing iterables: not yet supported by the interface'); - } - } - public function testArrayToArray(): void { $pipeline = new Standard([1, 2, 3]);