php-src/ext/mcrypt/tests/mcrypt_list_modes.phpt

27 lines
408 B
Plaintext
Raw Normal View History

2008-05-17 23:27:42 +00:00
--TEST--
mcrypt_list_modes
--SKIPIF--
<?php if (!extension_loaded("mcrypt") || unicode_semantics()) print "skip"; ?>
--FILE--
<?php
var_dump(mcrypt_list_modes());
--EXPECT--
array(8) {
[0]=>
unicode(3) "cbc"
2008-05-17 23:27:42 +00:00
[1]=>
unicode(3) "cfb"
2008-05-17 23:27:42 +00:00
[2]=>
unicode(3) "ctr"
2008-05-17 23:27:42 +00:00
[3]=>
unicode(3) "ecb"
2008-05-17 23:27:42 +00:00
[4]=>
unicode(4) "ncfb"
2008-05-17 23:27:42 +00:00
[5]=>
unicode(4) "nofb"
2008-05-17 23:27:42 +00:00
[6]=>
unicode(3) "ofb"
2008-05-17 23:27:42 +00:00
[7]=>
unicode(6) "stream"
2008-05-17 23:27:42 +00:00
}