File: RequestTest.php

package info (click to toggle)
php-http-psr7-integration-tests 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 452 kB
  • sloc: php: 1,593; makefile: 19
file content (28 lines) | stat: -rw-r--r-- 604 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace Http\Psr7Test\Tests\Guzzle;

use GuzzleHttp\Psr7\Request;
use Http\Psr7Test\RequestIntegrationTest;

class RequestTest extends RequestIntegrationTest
{
    protected $skippedTests = [
        'testMethodIsCaseSensitive' => 'methods are uppercased for BC',
    ];

    public function createSubject()
    {
        return new Request('GET', '/');
    }

    public static function getInvalidHeaderArguments()
    {
        $testCases = parent::getInvalidHeaderArguments();

        // Guzzle accepts false as value for BC
        unset($testCases[3]);

        return $testCases;
    }
}