public function FunctionsTest::testCalculatesHashSeeksToOriginalPosition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testCalculatesHashSeeksToOriginalPosition()
File
- vendor/
guzzlehttp/ psr7/ tests/ FunctionsTest.php, line 124
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testCalculatesHashSeeksToOriginalPosition() {
$s = Psr7\stream_for('foobazbar');
$s
->seek(4);
$this
->assertEquals(md5('foobazbar'), Psr7\hash($s, 'md5'));
$this
->assertEquals(4, $s
->tell());
}