/**
  * Ensures that getStrict() returns expected default value
  *
  * @return void
  */
 public function testGetStrict()
 {
     $validator = new Zend_Validate_InArray(array(1, 2, 3));
     $this->assertEquals(false, $validator->getStrict());
 }
Beispiel #2
0
 public function testSettingStrictViaInitiation()
 {
     $validator = new Zend_Validate_InArray(array('haystack' => array('test', 0, 'A'), 'strict' => true));
     $this->assertTrue($validator->getStrict());
 }