Esempio n. 1
0
<?php

global $th;
if (!isset($th)) {
    require_once dirname(dirname(__DIR__)) . '/src/TestHelper.class.php';
    $th = new rkphplib\TestHelper();
}
$th->load('src/lib/conf2kv.php');
$th->runFuncTest('conf2kv');
Esempio n. 2
0
<?php

global $th;
if (!isset($th)) {
    require_once dirname(dirname(__DIR__)) . '/src/TestHelper.class.php';
    $th = new rkphplib\TestHelper();
}
$th->load('src/DateCalc.class.php');
$th->runFuncTest('sql2num');
$th->runFuncTest('max');
$th->runFuncTest('sqlTS');
$th->runFuncTest('sqlAddMonth');
$th->runFuncTest('date2unix');
$th->runFuncTest('dmy2unix');
$th->runFuncTest('date2dmyhis');
$th->runFuncTest('date2dmy');
$th->runFuncTest('sql_date');
$th->runFuncTest('min_sec');
$th->runFuncTest('kw');
$th->runFuncTest('hms2sec');
$th->runFuncTest('sec2hms');
$th->runFuncTest('nowstr2time');
$th->runFuncTest('nextMonth');
$th->runFuncTest('prevMonth');
$th->runFuncTest('lastDay');
$th->runFuncTest('sqlDayOfYear');
$th->runFuncTest('formatDateStr');
$th->runFuncTest('formatDateTimeStr');
Esempio n. 3
0
<?php

global $th;
if (!isset($th)) {
    require_once dirname(dirname(__DIR__)) . '/src/TestHelper.class.php';
    $th = new rkphplib\TestHelper();
}
$th->load('src/lib/replace_tags.php');
$th->runFuncTest('replace_tags');
Esempio n. 4
0
<?php

global $th;
if (!isset($th)) {
    require_once dirname(dirname(__DIR__)) . '/src/TestHelper.class.php';
    $th = new rkphplib\TestHelper();
}
$th->load('src/lib/split_str.php');
$th->runFuncTest('split_str');
Esempio n. 5
0
<?php

global $th;
if (!isset($th)) {
    require_once dirname(dirname(__DIR__)) . '/src/TestHelper.class.php';
    $th = new rkphplib\TestHelper();
}
$th->load('src/lib/kv2conf.php');
$th->runFuncTest('kv2conf');
Esempio n. 6
0
<?php

global $th;
if (!isset($th)) {
    require_once dirname(dirname(__DIR__)) . '/src/TestHelper.class.php';
    $th = new rkphplib\TestHelper();
}
$th->load('src/lib/csv_explode.php');
$th->runFuncTest('csv_explode');