Beispiel #1
0
 public function __construct($url)
 {
     parent::__construct("a", array("href" => $url));
 }
 public function testElementWithTwoAttributes()
 {
     $element = new SimpleHtmlElement("p", array("class" => "extra", "style" => "font-size: 10pt;"));
     assertThat($element->getOpeningText(), is("<p class=\"extra\" style=\"font-size: 10pt;\">"));
     assertThat($element->getClosingText(), is("</p>"));
 }