Skip to content

Commit

Permalink
Remove pre-PHP 7.1 check
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Jan 15, 2022
1 parent a48a7a9 commit 880d381
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/IterableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 880d381

Please sign in to comment.