Example #1
0
 /**
  * @covers Dropdown::__toString
  * @covers Dropdown::options_as_string
  */
 public function test__toString()
 {
     $optGp = new \Dropdown_Optgroup("dates");
     $this->drop = $this->drop->addOption("office", "fruition sciences");
     $this->drop = $this->drop->addOptgroupObject($optGp);
     $actual = $this->drop->__toString();
     $excepted = '<select name="Office Name"><option value="fruition sciences">office</option><optgroup label="dates"></optgroup></select>';
     $this->assertEquals($excepted, $actual);
 }