markTestSkipped( 'Must have PHP 7 or paragonie/random_compat installed to test random_bytes().' ); } $csprng = new RandomBytesPseudoRandomStringGenerator; $randomString = $csprng->getPseudoRandomString(10); $this->assertEquals(1, preg_match('/^([0-9a-f]+)$/', $randomString)); $this->assertEquals(10, strlen($randomString)); } }