Elgg\Structs\Collection\InMemoryTest::testIsTraversable PHP Метод

testIsTraversable() публичный Метод

public testIsTraversable ( )
    public function testIsTraversable()
    {
        $collection = InMemory::fromArray(['one', 'two', 'three']);
        $items = array();
        foreach ($collection as $item) {
            $items[] = $item;
        }
        $this->assertEquals(array('one', 'two', 'three'), $items);
    }