コード例 #1
0
ファイル: SilkwormTest.php プロジェクト: nexocentric/silkworm
 /** 
  * @test 
  * @depends regularTagWithBooleanAttributes
  * @depends selfClosingTagWithUserDefinedBooleanAttributes
  */
 public function regularTagWithUserDefinedBooleanAttributes()
 {
     //declarations
     $qt = Silkworm::DOUBLE_QUOTE;
     $html = new Silkworm();
     $html->setBooleanDisplayStyle();
     //no string defaults to minimized
     $html->defineBooleanAttributes("filled-with-goodness");
     $html->button("disabled", "filled-with-goodness", "click me");
     $this->assertSame("<button disabled filled-with-goodness>click me</button>\n", (string) $html, "Failed to define boolean attributes for use in regular tag.");
 }