/** * Ensures that the validator follows expected behavior * * @return void */ public function testSettingFalseType() { $this->setExpectedException('Zend\\Validator\\Exception\\InvalidArgumentException', 'Unknown'); $this->validator->setType(true); }