SeekExceptionTest.php 422 B

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