예제 #1
0
파일: CountTest.php 프로젝트: jsnshrmn/Suma
 /**
  * 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());
 }
예제 #2
0
파일: CountTest.php 프로젝트: lortnus/zf1
 /**
  * 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());
 }