~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/guzzlehttp/streams/tests/InflateStreamTest.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

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