Esempio n. 1
0
 public function testOverloadingOffsetInsertsAtOffset()
 {
     $this->helper->offsetSetName(100, 'keywords', 'foo');
     $values = $this->helper->getArrayCopy();
     $this->assertEquals(1, count($values));
     $this->assertTrue(array_key_exists(100, $values));
     $item = $values[100];
     $this->assertEquals('foo', $item->content);
     $this->assertEquals('name', $item->type);
     $this->assertEquals('keywords', $item->name);
 }