Пример #1
0
 /**
  * Test that inRange() returns true if the number is within the defined range.
  */
 public function testInRange()
 {
     $this->assertTrue(Validate::inRange(20, 10, 30));
     $this->assertFalse(Validate::inRange(35, 10, 30));
     $this->assertFalse(Validate::inRange(5, 10, 30));
 }