summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/tests/Client/HttpHeadersTest.php
blob: f577d00fa72fe9fb4e35c7b15eeab887c2968443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
namespace PicoFeed\Client;

use PHPUnit_Framework_TestCase;


class HttpHeadersTest extends PHPUnit_Framework_TestCase
{

    public function testHttpHeadersSet() {
        $headers = new HttpHeaders(array('Content-Type' => 'test'));
        $this->assertEquals('test', $headers['content-typE']);
        $this->assertTrue(isset($headers['ConTent-Type']));

        unset($headers['Content-Type']);
        $this->assertFalse(isset($headers['ConTent-Type']));
    }

}