Code Duplication    Length = 7-7 lines in 2 locations

tests/unit/NameTest.php 1 location

@@ 8-14 (lines=7) @@
5
class NameTest extends FormTestCase {
6
7
	/** @test */
8
	public function it_can_be_rendered()
9
	{
10
		$form = $this->form();
11
		$form->name('foo');
12
		$this->assertContains('<input name="foo_first" value=""', $form->render());
13
		$this->assertContains('<input name="foo_surname" value=""', $form->render());
14
	}
15
16
	/** @test */
17
	public function it_renders_default_values()

tests/unit/SearchTest.php 1 location

@@ 8-14 (lines=7) @@
5
class SearchTest extends FormTestCase {
6
7
	/** @test */
8
	public function it_can_be_rendered()
9
	{
10
		$form = $this->form();
11
		$form->search('foo');
12
		$this->assertContains('<input name="foo" value=""', $form->render());
13
		$this->assertContains('<button name="foo_button"', $form->render());
14
	}
15
16
	/** @test */
17
	public function it_renders_a_default_value()