public function testLabel()
{
$result = $this->Html->label('foo');
$expected = ['span' => ['class' => 'label label-default'], 'foo', '/span'];
$this->assertHtml($expected, $result);
$result = $this->Html->label('foo', 'warning');
$expected = ['span' => ['class' => 'label label-warning'], 'foo', '/span'];
$this->assertHtml($expected, $result);
$result = $this->Html->label('foo', ['type' => 'custom']);
$expected = ['span' => ['class' => 'label label-custom'], 'foo', '/span'];
$this->assertHtml($expected, $result);
}