updated packages
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user