Exemple #1
0
 public function testOffsetGetWithAndWithoutSetValue()
 {
     $key = 'test';
     $value = uniqid($key . ':');
     $o = new ArrayModel();
     $this->assertNull($o->offsetGet($key));
     $o->offsetSet($key, $value);
     $this->assertEquals($value, $o->offsetGet($key));
     $this->assertEquals($value, $o[$key]);
 }