public function testDuplicateAttributesRemoved() { $expected = ' id="tick" name="tick" checked="checked"'; $attributes = Html::attributes(array('id' => 'foo', 'name' => 'bar', 'id' => 'tick', 'name' => 'tick', 'checked' => 'checked', 'checked')); $this->assertSame($expected, $attributes); }