示例#1
0
 public function testOverloadingOffsetSetWorks()
 {
     $this->helper->offsetSetStylesheet(100, '/styles.css');
     $items = $this->helper->getArrayCopy();
     $this->assertTrue(isset($items[100]));
     $link = $items[100];
     $this->assertEquals('/styles.css', $link->href);
 }