Skip to content

Commit 4d9a267

Browse files
committed
Update test URLs to use mock.httpstatus.io instead of httpstat.us
1 parent 88da651 commit 4d9a267

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tests/ExceptionTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,55 +25,55 @@ public function testRateLimitException(): void
2525
{
2626
$this->expectException(RateLimitException::class);
2727

28-
$this->tr->setUrl('https://httpstat.us/429')->translate('Test');
28+
$this->tr->setUrl('https://mock.httpstatus.io/429')->translate('Test');
2929
}
3030

3131
public function testRateLimitCaptchaException(): void
3232
{
3333
$this->expectException(RateLimitException::class);
3434

35-
$this->tr->setUrl('https://httpstat.us/503')->translate('Test');
35+
$this->tr->setUrl('https://mock.httpstatus.io/503')->translate('Test');
3636
}
3737

3838
public function testLargeTextException(): void
3939
{
4040
$this->expectException(LargeTextException::class);
4141

42-
$this->tr->setUrl('https://httpstat.us/413')->translate('Test');
42+
$this->tr->setUrl('https://mock.httpstatus.io/413')->translate('Test');
4343
}
4444

4545
public function testTranslationRequestException(): void
4646
{
4747
$this->expectException(TranslationRequestException::class);
4848

49-
$this->tr->setUrl('https://httpstat.us/418')->translate('Test');
49+
$this->tr->setUrl('https://mock.httpstatus.io/418')->translate('Test');
5050
}
5151

5252
public function testTranslationDecodingException(): void
5353
{
5454
$this->expectException(TranslationDecodingException::class);
5555

56-
$this->tr->setUrl('https://httpstat.us/200')->translate('Test');
56+
$this->tr->setUrl('https://mock.httpstatus.io/200')->translate('Test');
5757
}
5858

5959
public function testInheritanceForUnexpectedValueException(): void
6060
{
6161
$this->expectException(UnexpectedValueException::class);
6262

63-
$this->tr->setUrl('https://httpstat.us/200')->translate('Test');
63+
$this->tr->setUrl('https://mock.httpstatus.io/200')->translate('Test');
6464
}
6565

6666
public function testInheritanceForErrorException(): void
6767
{
6868
$this->expectException(ErrorException::class);
6969

70-
$this->tr->setUrl('https://httpstat.us/413')->translate('Test');
70+
$this->tr->setUrl('https://mock.httpstatus.io/413')->translate('Test');
7171
}
7272

7373
public function testLanguagesRequestException(): void
7474
{
7575
$this->expectException(LanguagesRequestException::class);
7676

77-
$this->tr->setUrl('https://httpstat.us/418')->languages();
77+
$this->tr->setUrl('https://mock.httpstatus.io/418')->languages();
7878
}
7979
}

0 commit comments

Comments
 (0)