Code Duplication    Length = 8-8 lines in 2 locations

tests/unit/TextTest.php 2 locations

@@ 90-97 (lines=8) @@
87
	}
88
89
	/** @test */
90
    public function it_validates_min()
91
    {
92
    	$this->assertValid(function($form) { $form->text('foo')->min(5); });
93
    	$this->assertValid(function($form) { $form->text('foo')->min(5)->default('123456789'); });
94
95
    	$this->assertNotValid(function($form) { $form->text('foo')->min(5)->required(); });
96
    	$this->assertNotValid(function($form) { $form->text('foo')->min(5)->default('123'); });
97
	}	
98
99
	/** @test */
100
    public function it_validates_max()
@@ 100-107 (lines=8) @@
97
	}	
98
99
	/** @test */
100
    public function it_validates_max()
101
    {
102
    	$this->assertValid(function($form) { $form->text('foo')->max(5); });
103
    	$this->assertValid(function($form) { $form->text('foo')->max(5)->default('123'); });
104
105
    	$this->assertNotValid(function($form) { $form->text('foo')->max(5)->required(); });
106
    	$this->assertNotValid(function($form) { $form->text('foo')->max(5)->default('123456789'); });
107
	}
108
109
	/** @test */
110
    public function it_validates_alpha()