Exemple #1
0
 /**
  * Ensures that setMax() returns expected value
  *
  * @return void
  */
 public function testSetMax()
 {
     $validator = new Zend_Validate_File_Count(array('min' => 1000, 'max' => 10000));
     $validator->setMax(1000000);
     $this->assertEquals(1000000, $validator->getMax());
     $validator->setMin(100);
     $this->assertEquals(1000000, $validator->getMax());
 }
Exemple #2
0
 /**
  * Ensures that setMax() returns expected value
  *
  * @return void
  */
 public function testSetMax()
 {
     $validator = new Zend_Validate_File_Count(1000, 10000);
     $validator->setMax(1000000);
     $this->assertEquals(1000000, $validator->getMax());
     $validator->setMin(100);
     $this->assertEquals(1000000, $validator->getMax());
     $validator->setMax(null);
     $this->assertEquals(null, $validator->getMax());
 }