1<?php 2namespace GuzzleHttp\Tests\Stream\Exception; 3 4use GuzzleHttp\Stream\Exception\SeekException; 5use GuzzleHttp\Stream\Stream; 6use PHPUnit\Framework\TestCase; 7 8class SeekExceptionTest extends TestCase 9{ 10 public function testHasStream() 11 { 12 $s = Stream::factory('foo'); 13 $e = new SeekException($s, 10); 14 $this->assertSame($s, $e->getStream()); 15 $this->assertStringContainsString('10', $e->getMessage()); 16 } 17} 18