public function testLegend() { $legend = Former::legend('test', array('class' => 'foo', 'data-foo' => 'bar')); $matcher = '<legend class="foo" data-foo="bar">Test</legend>'; $this->assertEquals($matcher, $legend); }