18 lines
410 B
PHP
18 lines
410 B
PHP
<?php
|
|
namespace GuzzleHttp\Tests\Exception;
|
|
|
|
use GuzzleHttp\Exception\SeekException;
|
|
use GuzzleHttp\Psr7;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class SeekExceptionTest extends TestCase
|
|
{
|
|
public function testHasStream()
|
|
{
|
|
$s = Psr7\stream_for('foo');
|
|
$e = new SeekException($s, 10);
|
|
self::assertSame($s, $e->getStream());
|
|
self::assertContains('10', $e->getMessage());
|
|
}
|
|
}
|