public function testExchangeArray() { $collection = new Collection(); $collection->addNormalizer(function (&$value) { $value = strtoupper($value); }); $collection->fromArray(['a' => 'x']); $this->assertEquals(['a' => 'X'], $collection->toArray()); }