Goutte\Tests\ClientTest::testUsesPostFilesUploadError PHP Method

testUsesPostFilesUploadError() public method

    public function testUsesPostFilesUploadError()
    {
        $guzzle = $this->getGuzzle();
        $client = new Client();
        $client->setClient($guzzle);
        $files = array('test' => array('name' => '', 'type' => '', 'tmp_name' => '', 'error' => 4, 'size' => 0));
        $client->request('POST', 'http://www.example.com/', array(), $files);
        $request = end($this->history)['request'];
        $stream = $request->getBody();
        $boundary = $stream->getBoundary();
        $this->assertEquals("--{$boundary}--\r\n", $stream->getContents());
    }