Laravel 5.6 updates
Travis config update Removed HHVM script as Laravel no longer support HHVM after releasing 5.3
This commit is contained in:
@@ -12,6 +12,19 @@ class UnauthorizedHttpExceptionTest extends HttpExceptionTest
|
||||
$this->assertSame(array('WWW-Authenticate' => 'Challenge'), $exception->getHeaders());
|
||||
}
|
||||
|
||||
public function testWithHeaderConstruct()
|
||||
{
|
||||
$headers = array(
|
||||
'Cache-Control' => 'public, s-maxage=1200',
|
||||
);
|
||||
|
||||
$exception = new UnauthorizedHttpException('Challenge', null, null, null, $headers);
|
||||
|
||||
$headers['WWW-Authenticate'] = 'Challenge';
|
||||
|
||||
$this->assertSame($headers, $exception->getHeaders());
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider headerDataProvider
|
||||
*/
|
||||
|
Reference in New Issue
Block a user