castCollection(new Collection(['foo', 'bar'])); $this->assertSame([['foo', 'bar']], array_values($result)); } }