Beispiel #1
0
 /**
  *
  */
 public function test_exists_throw_exception_when_soap_error_occurs()
 {
     $mock = $this->scaffoldMock();
     $mock->getMockController()->TemplateExists = function () {
         throw new SoapException('random exception');
     };
     $remote = new LdxRemote($mock);
     $remote->setName('test.tpl');
     $this->exception(function () use($remote) {
         $remote->exists();
     })->isInstanceOf('Awakenweb\\Livedocx\\Exceptions\\Templates\\StatusException')->hasMessage('Error while verifying the existence of a remote template')->hasNestedException();
 }