Aleksander Machniak
2015-05-23 3994b3a26c252cba4070337b036e3a1c12c81369
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)));
    }
}