blob: 927fc0b7bfded354d6b6aba3cf00144c585d3dad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
namespace GuzzleHttp\Tests\Psr7;
use GuzzleHttp\Psr7;
use GuzzleHttp\Psr7\InflateStream;
class InflateStreamtest extends \PHPUnit_Framework_TestCase
{
public function testInflatesStreams()
{
$content = gzencode('test');
$a = Psr7\stream_for($content);
$b = new InflateStream($a);
$this->assertEquals('test', (string) $b);
}
}
|