public function testFactoryCreatesFromResource()
{
$r = fopen(__FILE__, 'r');
$s = Psr7\stream_for($r);
$this->assertInstanceOf('GuzzleHttp\\Psr7\\Stream', $s);
$this->assertSame(file_get_contents(__FILE__), (string) $s);
}