/** * Ensures that an exception is thrown when a bad local regex is supplied * * @return void */ public function testBadRegexLocal() { try { $this->_validator->setRegex('local', '/')->isValid('anything'); $this->fail('Expected Zend_Validate_Exception not thrown for bad local network name regex'); } catch (Zend_Validate_Exception $e) { $this->assertContains('local network name validation failed', $e->getMessage()); } }