Fixes #653: use boolean type to indicate boolean attributes.

This commit is contained in:
Qiang Xue
2013-07-23 20:45:14 -04:00
parent 1f5d77790f
commit 915a3cd779
2 changed files with 8 additions and 45 deletions

View File

@ -471,7 +471,7 @@ EOD;
{
$this->assertEquals('', Html::renderTagAttributes(array()));
$this->assertEquals(' name="test" value="1&lt;&gt;"', Html::renderTagAttributes(array('name' => 'test', 'empty' => null, 'value' => '1<>')));
$this->assertEquals(' checked disabled', Html::renderTagAttributes(array('checked' => 'checked', 'disabled' => true, 'hidden' => false)));
$this->assertEquals(' checked disabled', Html::renderTagAttributes(array('checked' => true, 'disabled' => true, 'hidden' => false)));
}
public function testAddCssClass()