'
],
[
['my-button'],
''
],
[
['button[value]'],
''
],
[
['button', 'caption'],
''
],
// value encoding
[
['button', ''],
''
],
// parameter encoding
[
['button"&"'],
''
]
];
}
public function testSetEnabled() {
$button = $this->createTag();
$button->setEnabled(false);
$this->assertEquals(
'',
(string) $button
);
}
/**
* @param $name
* @param $caption
* @param $action
* @param $class
* @return CButton
*/
protected function createTag($name = 'button', $caption = '') {
return new CButton($name, $caption);
}
}