File: UploadedFileTest.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 (16 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

namespace Http\Psr7Test\Tests\Guzzle;

use GuzzleHttp\Psr7\UploadedFile;
use Http\Psr7Test\UploadedFileIntegrationTest;

class UploadedFileTest extends UploadedFileIntegrationTest
{
    public function createSubject()
    {
        $stream = \GuzzleHttp\Psr7\Utils::streamFor('Foobar');

        return new UploadedFile($stream, $stream->getSize(), UPLOAD_ERR_OK, 'filename.txt', 'text/plain');
    }
}