Update composer dependencies

This commit is contained in:
Chris
2019-06-11 12:29:32 +01:00
parent 7d6df3843b
commit 1f608b1c21
1835 changed files with 74500 additions and 27482 deletions

View File

@@ -9,14 +9,14 @@ class UnauthorizedHttpExceptionTest extends HttpExceptionTest
public function testHeadersDefault()
{
$exception = new UnauthorizedHttpException('Challenge');
$this->assertSame(array('WWW-Authenticate' => 'Challenge'), $exception->getHeaders());
$this->assertSame(['WWW-Authenticate' => 'Challenge'], $exception->getHeaders());
}
public function testWithHeaderConstruct()
{
$headers = array(
$headers = [
'Cache-Control' => 'public, s-maxage=1200',
);
];
$exception = new UnauthorizedHttpException('Challenge', null, null, null, $headers);
@@ -34,4 +34,9 @@ class UnauthorizedHttpExceptionTest extends HttpExceptionTest
$exception->setHeaders($headers);
$this->assertSame($headers, $exception->getHeaders());
}
protected function createException(string $message = null, \Throwable $previous = null, ?int $code = 0, array $headers = [])
{
return new UnauthorizedHttpException('Challenge', $message, $previous, $code, $headers);
}
}