Ejemplo n.º 1
0
 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());
     }
 }
Ejemplo n.º 2
0
 public function testRegistryExceptionClassNotFound()
 {
     $this->setExpectedException('DomainException', 'resolve');
     $registry = @Registry::setClassName('classdoesnotexist');
 }