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