Browse Source
* Fixed HeaderCollection::fromArray() key case * Added CHANGELOG.md line for #18883 (Fixed HeaderCollection::fromArray() key case)tags/2.0.44
rhertogh
3 years ago
committed by
GitHub
3 changed files with 29 additions and 1 deletions
@ -0,0 +1,27 @@
|
||||
<?php |
||||
/** |
||||
* @link http://www.yiiframework.com/ |
||||
* @copyright Copyright (c) 2008 Yii Software LLC |
||||
* @license http://www.yiiframework.com/license/ |
||||
*/ |
||||
|
||||
namespace yiiunit\framework\web; |
||||
|
||||
use yii\web\HeaderCollection; |
||||
use yiiunit\TestCase; |
||||
|
||||
/** |
||||
* @group web |
||||
*/ |
||||
class HeaderCollectionTest extends TestCase |
||||
{ |
||||
public function testFromArray() |
||||
{ |
||||
$headerCollection = new HeaderCollection(); |
||||
$location = 'my-test-location'; |
||||
$headerCollection->fromArray([ |
||||
'Location' => [$location], |
||||
]); |
||||
$this->assertEquals($location, $headerCollection->get('Location')); |
||||
} |
||||
} |
Loading…
Reference in new issue