Ejemplo n.º 1
0
 /**
  * @covers Dropdown::addOption
  */
 public function testAddOptionTooltip()
 {
     $name = "napa";
     $value = "valley";
     $tooltip = "choose office";
     $dropDown = $this->drop->addOption($name, $value, $tooltip);
     $actual = $dropDown->getOptions();
     $excepted = new \Dropdown_Option($name, $value);
     $excepted->setTooltip($tooltip);
     $this->assertContainsOnlyInstancesOf("Dropdown_Option", $actual);
     $this->assertEquals($excepted, $actual[0]);
 }