public function testCreateMenuWithAttributes() { $menu = new Menu(array('class' => 'root')); $this->assertEquals('root', $menu->getAttribute('class')); }