Пример #1
0
 /**
  * Test that between() returns true if a string length is within the boundaries.
  */
 public function testBetween()
 {
     $this->assertTrue(Validate::between('This is just the right length', 10, 30));
     $this->assertFalse(Validate::between('This is far too long because its more than 30 characters', 10, 30));
     $this->assertFalse(Validate::between('Too short', 10, 30));
 }