1--TEST--
2Test is_countable() function
3--CREDITS--
4Gabriel Caruso (carusogabriel34@gmail.com)
5--FILE--
6<?php
7var_dump(is_countable(new class extends ArrayIterator {}));
8var_dump(is_countable((array) new stdClass()));
9var_dump(is_countable(new class implements Countable {
10    public function count(): int
11    {
12        return count(1, 'foo');
13    }
14}));
15?>
16--EXPECT--
17bool(true)
18bool(true)
19bool(true)
20