public function testAttributes()
{
$attributes = array('value' => 1, 'title' => 'one');
$expected = ' value="1" title="one"';
$result = $this->helper->testAttributes($attributes);
$this->assertEqual($expected, $result);
$attributes = ' value="1" title="one"';
$result = $this->helper->testAttributes('value="1" title="one"');
$this->assertEqual($expected, $result);
$attributes = array('checked' => true, 'title' => 'one');
$expected = ' checked="checked" title="one"';
$result = $this->helper->testAttributes($attributes);
$this->assertEqual($expected, $result);
$attributes = array('checked' => false);
$result = $this->helper->testAttributes($attributes);
$this->assertEqual('', $result);
}