public function testRegistryExceptionClassNotFound() { try { $registry = @Registry::setClassName('classdoesnotexist'); $this->fail('Expected exception, because we cannot initialize the registry using a non-existent class.'); } catch (\Zend\Loader\Exception $e) { $this->assertRegExp('/file .* does not exist or .*/i', $e->getMessage()); } }
public function testRegistryExceptionClassNotFound() { $this->setExpectedException('DomainException', 'resolve'); $registry = @Registry::setClassName('classdoesnotexist'); }