mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-24 10:03:27 +01:00
17 lines
399 B
PHP
17 lines
399 B
PHP
<?php
|
|
namespace GuzzleHttp\Tests\Exception;
|
|
|
|
use GuzzleHttp\Exception\SeekException;
|
|
use GuzzleHttp\Psr7;
|
|
|
|
class SeekExceptionTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testHasStream()
|
|
{
|
|
$s = Psr7\stream_for('foo');
|
|
$e = new SeekException($s, 10);
|
|
$this->assertSame($s, $e->getStream());
|
|
$this->assertContains('10', $e->getMessage());
|
|
}
|
|
}
|