istic-openstack/server/vendor/guzzlehttp/psr7/tests/InflateStreamTest.php

17 lines
378 B
PHP
Raw Normal View History

2016-01-21 10:29:26 +01:00
<?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);
}
}