200でなかったときのテストを削除

4xxや5xxの場合は`\GuzzleHttp\Exception\BadResponseException`が発生するので、今まであったelseのところには到達しなかった
This commit is contained in:
eai04191
2019-09-09 13:52:32 +09:00
parent 0f530099b4
commit c0b76e522b
2 changed files with 11 additions and 24 deletions

View File

@@ -42,13 +42,4 @@ class XtubeResolverTest extends TestCase
$this->createResolver(XtubeResolver::class, '');
$this->resolver->resolve('https://www.xtube.com/gallery/black-celebs-free-7686657');
}
public function testNotOK()
{
$this->expectException(\RuntimeException::class);
$this->expectExceptionMessage('404: https://www.xtube.com/video-watch/notfound-404');
$this->createResolver(XtubeResolver::class, '', [], 404);
$this->resolver->resolve('https://www.xtube.com/video-watch/notfound-404');
}
}