source: branches/version-2_5-dev/data/module/Compat/tests/function/str_shuffle.phpt @ 19792

Revision 19792, 353 bytes checked in by Seasoft, 13 years ago (diff)

#744(PHP4 互換用途ソースを将来的に切り捨てやすい仕組みづくり)

Line 
1--TEST--
2Function -- str_shuffle
3--SKIPIF--
4<?php if (function_exists('str_shuffle')) { echo 'skip'; } ?>
5--FILE--
6<?php
7require_once 'PHP/Compat.php';
8PHP_Compat::loadFunction('str_shuffle');
9
10$string = str_shuffle('ab');
11if ($string == 'ab' ||
12    $string == 'ba' ||
13    $string == 'aa' ||
14    $string == 'bb') {
15
16    echo "true";
17}
18?>
19--EXPECT--
20true
Note: See TracBrowser for help on using the repository browser.