Exemple #1
0
 public function testAdd()
 {
     $item = new MenuItem();
     $item->name = 'Test item';
     $this->items->add($item);
     $this->assertEquals(1, $this->items->getLength());
     $this->assertEquals($item, $this->items->get(0));
 }