/** * 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()); }
public function testSettingANewHaystack() { $this->validator->setHaystack(array(1, 'a', 2.3)); $this->assertEquals(array(1, 'a', 2.3), $this->validator->getHaystack()); }