public function testSettingInvalidCookieDomainRaisesException2() { $this->setExpectedException('Zend\Session\Exception\InvalidArgumentException', 'does not match the expected structure for a DNS hostname'); $this->config->setCookieDomain('D:\\WINDOWS\\System32\\drivers\\etc\\hosts'); }