diff options
| author | Ryan Biesemeyer <yaauie@php.net> | 2011-07-20 21:25:39 +0000 |
|---|---|---|
| committer | Ryan Biesemeyer <yaauie@php.net> | 2011-07-20 21:25:39 +0000 |
| commit | 5dc5c26a5f6b149236ce0ca9031c37db5d9dcdab (patch) | |
| tree | df10f684714ae62c63a1c932f45eacc1b13f14e1 | |
| parent | 7acdad749cccd728c25fcf93a7cae428b7eda15e (diff) | |
| download | php-git-5dc5c26a5f6b149236ce0ca9031c37db5d9dcdab.tar.gz | |
removing openssl test for bug #55169 per Scott MacVicar's request; duplicate coverage of opensssl_random_pseudo_bytes.phpt
| -rw-r--r-- | ext/openssl/tests/bug55169.phpt | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/ext/openssl/tests/bug55169.phpt b/ext/openssl/tests/bug55169.phpt deleted file mode 100644 index e45ac5b1f7..0000000000 --- a/ext/openssl/tests/bug55169.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST--
-openssl_random_pseudo_bytes test
-https://bugs.php.net/bug.php?id=55169
---SKIPIF--
-<?php
-if(!extension_loaded('openssl')) echo 'skip - requires openssl extension';
-?>
---FILE--
-<?php
-for ($i = -1; $i <= 4; $i++) {
- $bytes = openssl_random_pseudo_bytes($i, $cstrong);
- $hex = bin2hex($bytes);
-
- echo "Lengths: Bytes: $i and Hex: " . strlen($hex) . PHP_EOL;
- var_dump($hex);
- var_dump($cstrong);
- echo PHP_EOL;
-}
-?>
---EXPECTF--
-Lengths: Bytes: -1 and Hex: 0
-string(0) ""
-NULL
-
-Lengths: Bytes: 0 and Hex: 0
-string(0) ""
-NULL
-
-Lengths: Bytes: 1 and Hex: 2
-string(2) "%x"
-bool(true)
-
-Lengths: Bytes: 2 and Hex: 4
-string(4) "%x"
-bool(true)
-
-Lengths: Bytes: 3 and Hex: 6
-string(6) "%x"
-bool(true)
-
-Lengths: Bytes: 4 and Hex: 8
-string(8) "%x"
-bool(true)
|
