/** * @test */ public function shouldNotAddEmptyClassAttribute() { //given $product = new Product(array('name' => 'valid')); $formBuilder = new ModelFormBuilder($product); //when $html = $formBuilder->textField('name'); //then $this->assertNotContains('class="', $html); }