示例#1
0
 /**
  * Ensures that getHaystack() returns expected value
  *
  * @return void
  */
 public function testGetHaystack()
 {
     $validator = new Validator\InArray(array(1, 2, 3));
     $this->assertEquals(array(1, 2, 3), $validator->getHaystack());
 }
示例#2
0
 public function testSettingANewHaystack()
 {
     $this->validator->setHaystack(array(1, 'a', 2.3));
     $this->assertEquals(array(1, 'a', 2.3), $this->validator->getHaystack());
 }