summaryrefslogtreecommitdiff
path: root/ext/mcrypt/tests/mcrypt_module_is_block_algorithm.phpt
blob: 2cfc87ddf501064789ea4aaa45962e8ca40e2eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
mcrypt_module_is_block_algorithm
--SKIPIF--
<?php if (!extension_loaded("mcrypt")) print "skip"; ?>
--FILE--
<?php
var_dump(mcrypt_module_is_block_algorithm(MCRYPT_RIJNDAEL_128));
var_dump(mcrypt_module_is_block_algorithm(MCRYPT_DES));
var_dump(mcrypt_module_is_block_algorithm(MCRYPT_WAKE));
var_dump(mcrypt_module_is_block_algorithm(MCRYPT_XTEA));
--EXPECT--
bool(true)
bool(true)
bool(false)
bool(true)