???PHP???????????????
???????????? ???????[ 2011/9/8 11:45:55 ] ????????
????PHP : /home/user_dir/php-5.2.8/sapi/cli/php
????PHP_SAPI : cli
????PHP_VERSION : 5.2.8
????ZEND_VERSION: 2.1.0
????PHP_OS : Linux rhas05 2.6.9-55.ELhugemem #1
????SMP Fri Apr 20 17:20:11 EDT 2007 i686 i686 i386 GNU/Linux
????INI actual :
????More .INIs :
????Extra dirs :
????=====================================================================
????Running selected tests.
????PASS Test version string [001.phpt]
????=====================================================================
????Number of tests : 1 1
????Tests skipped : 0 ( 0.0%) --------
????Tests warned : 0 ( 0.0%) ( 0.0%)
????Tests failed : 0 ( 0.0%) ( 0.0%)
????Tests passed : 1 (100.0%) (100.0%)
????---------------------------------------------------------------------
????Time taken : 0 seconds
????=====================================================================
????????ò?????????????????????????????????????????????????????????????????????????????????????????????????????? TEST_PHP_LOG_FORMAT ?趨???????? 2 ??????趨???? ?? LEOD ?? ?????????????????? 3 ???г????????????
?????? 3. PHP ???????????????????
???????????? ?????????? ?????TEST_PHP_LOG_FORMAT???????
????001.out???в??????????????????????O
????001.exp????е??????????????????? EXPECT* ?ε??????E
????001.log??????е????????????е??????????? ?? .exp ?? ?? ?? .out ?? ??????L
????001.diff??????е????????????е?????????? diff ???????????????D
????001.php?????е? PHP ?????????????н??????????? FILE ?ε???????????
??????????????????????????????? PHP ????????????????С??? 4 ?г??????? PHP ???????????
?????? 4. PHP ???????????
?????????? ???? ????
???????е???????????????????001.phpt 002.phpt
?????????????μ??????????????????????test_dir/
????????????????г??????????-r ???о???????????????-r record_file
????PHP ???????????????????
???????嵥 3?е?????????У????????????? ?? $HOME/php-5.2.8/sapi/cli/php run-tests.php $HOME/php-5.2.8/sapi/cli/tests/001.phpt ?? ?????У??? 001.phpt ?? ???????;?? run-tests.php ?? ? PHP ?????????????????????;?? ?? $HOME/php-5.2.8/sapi/cli/php ?? ??????????????? PHP ????ж????????????????????????????? TEST_PHP_EXECUTABLE ??????? PHP ????ж???????????в??????е? ?? $HOME/php-5.2.8/sapi/cli/php ?? ?????????????????ж???????????????????????????? TEST_PHP_EXECUTABLE ??????? PHP ???????????????в????????? ?? $HOME/php-5.2.8/sapi/cli/php ?? ???????????????????????С?
??????? 1 ?п?????????? PHP ????????????? PHP ????ж??????? PHP ???????????????????У????????? ?? $HOME/php-5.2.8/sapi/cli/php ?? ????н?? ?? run-tests.php ?? (?? 1 ??)?? ?? ?? run-tests.php ?? ????У?????????????????? ?? TEST_PHP_EXECUTABLE =$HOME/php-5.2.8/sapi/cli/php ?? (?? 2 ??)?????? PHP ????ж??????????? PHP ???? run-tests.php ?? ????л?????????? ?? 001.phpt ?? ?е? FILE ?ν???? PHP ??? ?? 001.php ?? (?? 3 ??)?? ?? ?? TEST_PHP_EXECUTABLE ?? ???????? PHP ????ж??????? ?? 001.php ?? (?? 4 ??)??????????????????????????????? EXPECT ?ε??????????????????(?? 5 ??)?????????й???????? ?? run-tests.php ?? ?????????еó???
???????????????????????????PHP ?????????????????????? ?? run-tests.php ?? ??????????????? PHPT ???? ?? run-tests.php ?? ??????? PHP ???????????????????????嵥 5 ?У???????????? PHP ?????????????????????
?????嵥 5. PHP ???????????????
????$test_cnt = count($test_files);
????if ($test_cnt) {
????putenv(??NO_INTERACTION=1??);
????verify_config();
????write_information($html_output);
????usort($test_files?? "test_sort");
????$start_time = time();
????if (!$html_output) {
????echo "Running selected tests.
";
????} else {
????show_start($start_time);
????}
????$test_idx = 0;
????run_all_tests($test_files?? $environment);
????$end_time = time();
????if ($html_output) {
????show_end($end_time);
????}
????if ($failed_tests_file) {
????fclose($failed_tests_file);
????}
????if (count($test_files) || count($test_results)) {
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11