Files
@ 3be168914a12
Branch filter:
Location: DistRen/htdocs/sql/test/PMA_STR_sub_test.php - annotation
3be168914a12
979 B
text/x-php
Added web interface fileshg commit -h
3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 3be168914a12 | <?php
/* vim: expandtab sw=4 ts=4 sts=4: */
/**
* tests for PMA_pow()
*
* @version $Id: PMA_pow_test.php 10140 2007-03-20 08:32:55Z cybot_tm $
* @package phpMyAdmin-test
*/
/**
*
*/
require_once 'PHPUnit/Framework.php';
$match = array();
preg_match('@^([0-9]{1,2})(?:.([0-9]{1,2})(?:.([0-9]{1,2}))?)?@',
phpversion(), $match);
if (isset($match) && ! empty($match[1])) {
if (! isset($match[2])) {
$match[2] = 0;
}
if (! isset($match[3])) {
$match[3] = 0;
}
define('PMA_PHP_INT_VERSION',
(int) sprintf('%d%02d%02d', $match[1], $match[2], $match[3]));
} else {
define('PMA_PHP_INT_VERSION', 0);
}
$GLOBALS['charset'] = 'UTF-8';
require_once './libraries/string.lib.php';
class PMA_STR_sub_test extends PHPUnit_Framework_TestCase
{
public function testMultiByte()
{
$this->assertEquals('čšě',
PMA_substr('čšěčščěš', 0, 3));
}
}
?>
|