server/src/tests/Services/ViafResolverTest.php
changeset 26 72f51a9386ff
parent 23 037687868bc4
child 28 b0b56e0f8c7f
equal deleted inserted replaced
25:4ce76c9e7729 26:72f51a9386ff
   124     }
   124     }
   125 
   125 
   126     /**
   126     /**
   127      * Test exception 401
   127      * Test exception 401
   128      * @expectedException        CorpusParole\Services\ViafResolverException
   128      * @expectedException        CorpusParole\Services\ViafResolverException
   129      * @expectedExceptionMessage Client error: 401
   129      * @expectedExceptionMessage Client error: `GET http://viaf.org/viaf/12345/` resulted in a `401 Unauthorized` response:
   130      * @expectedExceptionCode 401
   130      * @expectedExceptionCode 401
   131      */
   131      */
   132     public function test401Error() {
   132     public function test401Error() {
   133         $resolver = $this->app->make('CorpusParole\Services\ViafResolver', [$this->client401]);
   133         $resolver = $this->app->make('CorpusParole\Services\ViafResolver', [$this->client401]);
   134 
   134 
   137 
   137 
   138 
   138 
   139     /**
   139     /**
   140      * Test exception 500
   140      * Test exception 500
   141      * @expectedException        CorpusParole\Services\ViafResolverException
   141      * @expectedException        CorpusParole\Services\ViafResolverException
   142      * @expectedExceptionMessage Server error: 500
   142      * @expectedExceptionMessage Server error: `GET http://viaf.org/viaf/12345/` resulted in a `500 Internal Server Error` response:
   143      * @expectedExceptionCode 500
   143      * @expectedExceptionCode 500
   144      */
   144      */
   145     public function test500Error() {
   145     public function test500Error() {
   146         $resolver = $this->app->make('CorpusParole\Services\ViafResolver', [$this->client500]);
   146         $resolver = $this->app->make('CorpusParole\Services\ViafResolver', [$this->client500]);
   147 
   147