/** * @throws \Exception */ public function testKeyNormalizersCamel() { $this->storage->setKeyNormalizer(ArrayDataStorage::KEY_CASE_CAMEL); $this->storage->setItem('test_item_1', 'testValue1'); $this->storage->offsetSet('TestItem2', 'testValue2'); $this->assertEquals('testValue1', $this->storage->getItem('testItem1')); $this->assertEquals('testValue1', $this->storage->offsetGet('testItem1')); $this->assertEquals('testValue2', $this->storage->offsetGet('testItem2')); }
public function offsetGet($offset) { $this->assertValidationPassed(); //TODO: apply converter return $this->dataStorage->offsetGet($offset); }