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, trixie
  • size: 452 kB
  • sloc: php: 1,593; makefile: 19
file content (24 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace Http\Psr7Test\Tests\Slim;

use Http\Psr7Test\RequestIntegrationTest;
use Slim\Psr7\Factory\StreamFactory;
use Slim\Psr7\Factory\UriFactory;
use Slim\Psr7\Headers;
use Slim\Psr7\Request;

class RequestTest extends RequestIntegrationTest
{
    public function createSubject()
    {
        return new Request(
            'GET',
            (new UriFactory())->createUri('/'),
            new Headers([]),
            [],
            [],
            (new StreamFactory())->createStream()
        );
    }
}