/** * @test * @depends selfClosingTagWithAttributesFromArray * @depends selfClosingTagWithBooleanAttributes */ public function selfClosingTagWithAttributesFromArrayAndStrings() { $qt = Silkworm::DOUBLE_QUOTE; $html = new Silkworm(); $html->setBooleanDisplayStyle(); //no string defaults to minimized $attributes = array("name" => "frame1", "marginheight" => "10"); $html->frame($attributes, "noresize"); $this->assertSame("<frame name={$qt}frame1{$qt} marginheight={$qt}10{$qt} noresize>\n", (string) $html, "Failed to return br tag as parent (self-closing)."); }