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