Changeset View
Changeset View
Standalone View
Standalone View
src/filesystem/__tests__/FilesystemTestCase.php
Context not available. | |||||
public function testReadRandomBytes() { | public function testReadRandomBytes() { | ||||
$number_of_bytes = 1024; | $number_of_bytes = 1024; | ||||
$data = Filesystem::readRandomBytes($number_of_bytes); | $data = Filesystem::readRandomBytes($number_of_bytes); | ||||
$this->assertTrue(strlen($data) == $number_of_bytes); | $this->assertTrue(@strlen($data) == $number_of_bytes); | ||||
$data1 = Filesystem::readRandomBytes(128); | $data1 = Filesystem::readRandomBytes(128); | ||||
$data2 = Filesystem::readRandomBytes(128); | $data2 = Filesystem::readRandomBytes(128); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0