Exemplo n.º 1
0
 /**
  * Tests Valid::min_length()
  *
  * Checks that a field is long enough.
  *
  * @test
  * @dataProvider provider_min_length
  * @param string  $string     String to compare
  * @param integer $minlength  The minimum allowed length
  * @param boolean $correct    Is $string 's length >= $minlength
  */
 public function test_min_length($string, $minlength, $correct)
 {
     $this->assertSame($correct, Valid::min_length($string, $minlength));
 }