SeekExceptionTest.php 422 Bytes
Newer Older
冯超鹏's avatar
冯超鹏 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?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());
    }
}