徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
422 B

2 months ago
<?php
namespace GuzzleHttp\Tests\Stream\Exception;
use GuzzleHttp\Stream\Exception\SeekException;
use GuzzleHttp\Stream\Stream;
class SeekExceptionTest extends \PHPUnit_Framework_TestCase
{
public function testHasStream()
{
$s = Stream::factory('foo');
$e = new SeekException($s, 10);
$this->assertSame($s, $e->getStream());
$this->assertContains('10', $e->getMessage());
}
}