public function testAttributes() { $button = Former::button('pagination.next')->setAttributes($this->testAttributes)->__toString(); $matcher = '<button class="foo" data-foo="bar">Next »</button>'; $this->assertEquals($matcher, $button); }