SeekExceptionTest.php 447 B

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