diff options
| author | EoleDev <EoleDev@outlook.fr> | 2016-04-14 16:24:44 +0200 |
|---|---|---|
| committer | EoleDev <EoleDev@outlook.fr> | 2016-04-14 16:24:44 +0200 |
| commit | 24bb5fefbdf93ce0969b7f56cc46c459ebb82a95 (patch) | |
| tree | 531fc8b774c035040774234efba780a3d4fe9242 /server/vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php | |
| parent | 646af6fd4d14c5b5edb1372e5f68ed9bdc35b3d2 (diff) | |
Mise a jour et nettoyage depot
Diffstat (limited to 'server/vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php')
| -rw-r--r-- | server/vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/server/vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php b/server/vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php deleted file mode 100644 index a309317..0000000 --- a/server/vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php -namespace GuzzleHttp\Tests\Psr7; - -use GuzzleHttp\Psr7; -use GuzzleHttp\Psr7\NoSeekStream; - -/** - * @covers GuzzleHttp\Psr7\NoSeekStream - * @covers GuzzleHttp\Psr7\StreamDecoratorTrait - */ -class NoSeekStreamTest extends \PHPUnit_Framework_TestCase -{ - /** - * @expectedException \RuntimeException - * @expectedExceptionMessage Cannot seek a NoSeekStream - */ - public function testCannotSeek() - { - $s = $this->getMockBuilder('Psr\Http\Message\StreamInterface') - ->setMethods(['isSeekable', 'seek']) - ->getMockForAbstractClass(); - $s->expects($this->never())->method('seek'); - $s->expects($this->never())->method('isSeekable'); - $wrapped = new NoSeekStream($s); - $this->assertFalse($wrapped->isSeekable()); - $wrapped->seek(2); - } - - /** - * @expectedException \RuntimeException - * @expectedExceptionMessage Cannot write to a non-writable stream - */ - public function testHandlesClose() - { - $s = Psr7\stream_for('foo'); - $wrapped = new NoSeekStream($s); - $wrapped->close(); - $wrapped->write('foo'); - } -} |
