--TEST-- Test Collection::toCollection(). --FILE-- toCollection($collection); if ($collection->toArray() != ['a', 'b', 'foo', 'bar']) echo 'Collection::toCollection() failed.', PHP_EOL; ?> --EXPECT--