mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-04 05:59:55 +09:00
Update composer dependencies
This commit is contained in:
@@ -9,14 +9,14 @@ class TooManyRequestsHttpExceptionTest extends HttpExceptionTest
|
||||
public function testHeadersDefaultRertyAfter()
|
||||
{
|
||||
$exception = new TooManyRequestsHttpException(10);
|
||||
$this->assertSame(array('Retry-After' => 10), $exception->getHeaders());
|
||||
$this->assertSame(['Retry-After' => 10], $exception->getHeaders());
|
||||
}
|
||||
|
||||
public function testWithHeaderConstruct()
|
||||
{
|
||||
$headers = array(
|
||||
$headers = [
|
||||
'Cache-Control' => 'public, s-maxage=69',
|
||||
);
|
||||
];
|
||||
|
||||
$exception = new TooManyRequestsHttpException(69, null, null, null, $headers);
|
||||
|
||||
@@ -35,8 +35,8 @@ class TooManyRequestsHttpExceptionTest extends HttpExceptionTest
|
||||
$this->assertSame($headers, $exception->getHeaders());
|
||||
}
|
||||
|
||||
protected function createException()
|
||||
protected function createException(string $message = null, \Throwable $previous = null, ?int $code = 0, array $headers = [])
|
||||
{
|
||||
return new TooManyRequestsHttpException();
|
||||
return new TooManyRequestsHttpException(null, $message, $previous, $code, $headers);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user