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

Revision 20116, 509 bytes checked in by nanasess, 13 years ago (diff)
  • svn properties を再設定
  • 再設定用のスクリプト追加
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
Line 
1--TEST--
2Function -- convert_uuencode
3--SKIPIF--
4<?php if (function_exists('convert_uuencode')) { echo 'skip'; } ?>
5--FILE--
6<?php
7require_once 'PHP/Compat.php';
8PHP_Compat::loadFunction('convert_uuencode');
9
10// Simple test
11echo md5(convert_uuencode('This is a simple test')), "\n";
12
13// Really messy test
14$string = '';
15for ($i = 0; 127 > $i; $i++) {
16    $string .= str_repeat(chr($i), 10);
17}
18echo md5(convert_uuencode($string));
19
20?>
21--EXPECT--
22d7974131c8970783f70851c83fe17767
2319acf7157a8345307ea5e5ea6878abb4
Note: See TracBrowser for help on using the repository browser.