tests/Framework/Utils.php
@@ -419,4 +419,15 @@ $this->assertSame($output, $result); } } /** * rcube:utils::random_bytes() */ function test_random_bytes() { $this->assertSame(15, strlen(rcube_utils::random_bytes(15))); $this->assertSame(1, strlen(rcube_utils::random_bytes(1))); $this->assertSame(0, strlen(rcube_utils::random_bytes(0))); $this->assertSame(0, strlen(rcube_utils::random_bytes(-1))); } }