[PHP-CVS] cvs: phpruntests /src rtClassMap.php rtException.php /src/taskScheduler rtTaskSchedulerFile.php /src/testcase rtPhpRunner.php /src/testcase/sections/executablesections rtCleanSection.php
g2 Wed Jul 8 19:23:23 2009 UTC Added files: /phpruntests/srcrtException.php Modified files: /phpruntests/srcrtClassMap.php /phpruntests/src/testcase/sections/executablesections rtCleanSection.php rtFileSection.php rtSkipIfSection.php /phpruntests/src/testcase rtPhpRunner.php /phpruntests/src/taskScheduler rtTaskSchedulerFile.php Log: phpruntests - moved rtException in root, replaced PhpRunnerException - added singal-handler to taskSchedulerFile http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.15r2=1.16diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.15 phpruntests/src/rtClassMap.php:1.16 --- phpruntests/src/rtClassMap.php:1.15 Sun Jun 28 09:47:37 2009 +++ phpruntests/src/rtClassMap.php Wed Jul 8 19:23:23 2009 @@ -8,7 +8,6 @@ */ $rtClassMap = array( 'rtEnvironmentException' = 'configuration/exceptions/rtEnvironmentException.php', -'rtException' = 'configuration/exceptions/rtException.php', 'rtMissingArgumentException' = 'configuration/exceptions/rtMissingArgumentException.php', 'rtUnknownIniSettingException' = 'configuration/exceptions/rtUnknownIniSettingException.php', 'rtUnknownOptionException' = 'configuration/exceptions/rtUnknownOptionException.php', @@ -46,6 +45,7 @@ 'rtAutoload' = 'rtAutoload.php', 'rtClassMap' = 'rtClassMap.php', 'rtDirectoryList' = 'rtDirectoryList.php', +'rtException' = 'rtException.php', 'rtPhptFilterIterator' = 'rtPhptFilterIterator.php', 'rtText' = 'rtText.php', 'rtUtil' = 'rtUtil.php', @@ -55,7 +55,6 @@ 'rtTaskSchedulerFile' = 'taskScheduler/rtTaskSchedulerFile.php', 'rtTaskSchedulerMsgQ' = 'taskScheduler/rtTaskSchedulerMsgQ.php', 'rtTaskTestGroup' = 'taskScheduler/rtTaskTestGroup.php', -'rtCodeRunnerException'= 'testcase/exceptions/rtCodeRunnerException.php', 'rtPhpRunnerException' = 'testcase/exceptions/rtPhpRunnerException.php', 'rtTestOutputWriterCSV'= 'testcase/output/rtTestOutputWriterCSV.php', 'rtTestOutputWriterList' = 'testcase/output/rtTestOutputWriterList.php', http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/sections/executablesections/rtCleanSection.php?r1=1.5r2=1.6diff_format=u Index: phpruntests/src/testcase/sections/executablesections/rtCleanSection.php diff -u phpruntests/src/testcase/sections/executablesections/rtCleanSection.php:1.5 phpruntests/src/testcase/sections/executablesections/rtCleanSection.php:1.6 --- phpruntests/src/testcase/sections/executablesections/rtCleanSection.php:1.5 Tue Jun 2 19:12:08 2009 +++ phpruntests/src/testcase/sections/executablesections/rtCleanSection.php Wed Jul 8 19:23:23 2009 @@ -43,7 +43,7 @@ $testStatus-setMessage('fail_clean','Execution of clean section failed: '.trim($this-output) ); } -} catch (rtPhpRunnerException $e) { +} catch (rtException $e) { $testStatus-setTrue('fail_clean'); $testStatus-setMessage('fail_clean',$e-getMessage); } http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/sections/executablesections/rtFileSection.php?r1=1.13r2=1.14diff_format=u Index: phpruntests/src/testcase/sections/executablesections/rtFileSection.php diff -u phpruntests/src/testcase/sections/executablesections/rtFileSection.php:1.13 phpruntests/src/testcase/sections/executablesections/rtFileSection.php:1.14 --- phpruntests/src/testcase/sections/executablesections/rtFileSection.php:1.13 Tue Jun 2 19:12:08 2009 +++ phpruntests/src/testcase/sections/executablesections/rtFileSection.php Wed Jul 8 19:23:23 2009 @@ -67,7 +67,7 @@ } -} catch (rtPhpRunnerException $e) { +} catch (rtException $e) { $testStatus-setTrue('fail'); $testStatus-setMessage('fail', $e-getMessage() ); } http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/sections/executablesections/rtSkipIfSection.php?r1=1.5r2=1.6diff_format=u Index: phpruntests/src/testcase/sections/executablesections/rtSkipIfSection.php diff -u phpruntests/src/testcase/sections/executablesections/rtSkipIfSection.php:1.5 phpruntests/src/testcase/sections/executablesections/rtSkipIfSection.php:1.6 ---
[PHP-CVS] cvs: phpruntests /src rtClassMap.php
zoe Sun Jun 28 09:47:37 2009 UTC Modified files: /phpruntests/srcrtClassMap.php Log: class map with csv writer http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.14r2=1.15diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.14 phpruntests/src/rtClassMap.php:1.15 --- phpruntests/src/rtClassMap.php:1.14 Fri Jun 26 00:07:24 2009 +++ phpruntests/src/rtClassMap.php Sun Jun 28 09:47:37 2009 @@ -55,7 +55,9 @@ 'rtTaskSchedulerFile' = 'taskScheduler/rtTaskSchedulerFile.php', 'rtTaskSchedulerMsgQ' = 'taskScheduler/rtTaskSchedulerMsgQ.php', 'rtTaskTestGroup' = 'taskScheduler/rtTaskTestGroup.php', +'rtCodeRunnerException'= 'testcase/exceptions/rtCodeRunnerException.php', 'rtPhpRunnerException' = 'testcase/exceptions/rtPhpRunnerException.php', +'rtTestOutputWriterCSV'= 'testcase/output/rtTestOutputWriterCSV.php', 'rtTestOutputWriterList' = 'testcase/output/rtTestOutputWriterList.php', 'rtTestOutputWriterXML'= 'testcase/output/rtTestOutputWriterXML.php', 'rtHasMandatorySections' = 'testcase/preconditions/rtHasMandatorySections.php', -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src rtClassMap.php run-tests.php /src/configuration rtCommandLineOptions.php /src/configuration/exceptions rtEnvironmentException.php rtException.php rtMissingArgumentExc
g2 Fri Jun 26 00:07:24 2009 UTC Added files: /phpruntests/src/taskScheduler rtTaskInterface.php rtTaskScheduler.php rtTaskSchedulerFile.php rtTask.php rtTaskSchedulerMsgQ.php rtTaskTestGroup.php /phpruntests/src/configuration/exceptions rtException.php /phpruntests/tests rtTaskSchedulerTest.php Modified files: /phpruntests/src/configuration/exceptions rtEnvironmentException.php rtMissingArgumentException.php rtUnknownOptionException.php rtUnknownIniSettingException.php /phpruntests/srcrun-tests.php rtClassMap.php /phpruntests/src/configuration rtCommandLineOptions.php /phpruntests/src/testrunrtPhpTestRun.php Log: phpruntests - integrated taskScheduler into rtPhpTestRun - added argument for cmd-line-option 'z' (number of processes) - added rtExcpetion and a simple exception-hanlder http://cvs.php.net/viewvc.cgi/phpruntests/src/configuration/exceptions/rtEnvironmentException.php?r1=1.2r2=1.3diff_format=u Index: phpruntests/src/configuration/exceptions/rtEnvironmentException.php diff -u phpruntests/src/configuration/exceptions/rtEnvironmentException.php:1.2 phpruntests/src/configuration/exceptions/rtEnvironmentException.php:1.3 --- phpruntests/src/configuration/exceptions/rtEnvironmentException.php:1.2 Mon Apr 20 20:24:30 2009 +++ phpruntests/src/configuration/exceptions/rtEnvironmentException.php Fri Jun 26 00:07:24 2009 @@ -1,6 +1,6 @@ ?php -class rtEnvironmentException extends RunTimeException +class rtEnvironmentException extends rtException { } ? http://cvs.php.net/viewvc.cgi/phpruntests/src/configuration/exceptions/rtMissingArgumentException.php?r1=1.2r2=1.3diff_format=u Index: phpruntests/src/configuration/exceptions/rtMissingArgumentException.php diff -u phpruntests/src/configuration/exceptions/rtMissingArgumentException.php:1.2 phpruntests/src/configuration/exceptions/rtMissingArgumentException.php:1.3 --- phpruntests/src/configuration/exceptions/rtMissingArgumentException.php:1.2 Mon Apr 20 20:24:30 2009 +++ phpruntests/src/configuration/exceptions/rtMissingArgumentException.php Fri Jun 26 00:07:24 2009 @@ -1,6 +1,6 @@ ?php -class rtMissingArgumentException extends RuntimeException +class rtMissingArgumentException extends rtException { } ? http://cvs.php.net/viewvc.cgi/phpruntests/src/configuration/exceptions/rtUnknownOptionException.php?r1=1.2r2=1.3diff_format=u Index: phpruntests/src/configuration/exceptions/rtUnknownOptionException.php diff -u phpruntests/src/configuration/exceptions/rtUnknownOptionException.php:1.2 phpruntests/src/configuration/exceptions/rtUnknownOptionException.php:1.3 --- phpruntests/src/configuration/exceptions/rtUnknownOptionException.php:1.2 Mon Apr 20 20:24:30 2009 +++ phpruntests/src/configuration/exceptions/rtUnknownOptionException.php Fri Jun 26 00:07:24 2009 @@ -1,6 +1,6 @@ ?php -class rtUnknownOptionException extends RuntimeException +class rtUnknownOptionException extends rtException { } ? http://cvs.php.net/viewvc.cgi/phpruntests/src/configuration/exceptions/rtUnknownIniSettingException.php?r1=1.2r2=1.3diff_format=u Index: phpruntests/src/configuration/exceptions/rtUnknownIniSettingException.php diff -u phpruntests/src/configuration/exceptions/rtUnknownIniSettingException.php:1.2 phpruntests/src/configuration/exceptions/rtUnknownIniSettingException.php:1.3 --- phpruntests/src/configuration/exceptions/rtUnknownIniSettingException.php:1.2 Mon Apr 20 20:24:30 2009 +++ phpruntests/src/configuration/exceptions/rtUnknownIniSettingException.php Fri Jun 26 00:07:24 2009 @@ -1,6 +1,6 @@ ?php -class rtUnknownIniSettingException extends RuntimeException +class rtUnknownIniSettingException extends rtException { } ? http://cvs.php.net/viewvc.cgi/phpruntests/src/run-tests.php?r1=1.3r2=1.4diff_format=u Index: phpruntests/src/run-tests.php diff -u phpruntests/src/run-tests.php:1.3 phpruntests/src/run-tests.php:1.4 --- phpruntests/src/run-tests.php:1.3 Tue May 12 16:05:00 2009 +++ phpruntests/src/run-tests.php Fri Jun 26 00:07:24 2009 @@ -4,6 +4,22 @@ */ + +/** + * rtExceptionHandler + * + * @param Exception $e + * @return unknown_type + */ +function rtExceptionHandler(Exception $e) { + + print $e; +} + +set_exception_handler('rtExceptionHandler'); + + + /* * check the version of the running php-executable and * ensure that is 5.3 or higher @@ -14,7 +30,13 @@ require_once dirname(__FILE__) . '/rtAutoload.php'; +$s = microtime(true); + $phpTestRun = new rtPhpTestRun($argv); $phpTestRun-run(); +$e =
[PHP-CVS] cvs: phpruntests /src rtClassMap.php /src/testcase/exceptions rtPhpRunnerException.php
g2 Tue Jun 23 12:59:52 2009 UTC Added files: /phpruntests/src/testcase/exceptionsrtPhpRunnerException.php Modified files: /phpruntests/srcrtClassMap.php Log: phpruntests - fixed wrong class-filename http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.12r2=1.13diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.12 phpruntests/src/rtClassMap.php:1.13 --- phpruntests/src/rtClassMap.php:1.12 Tue Jun 2 08:03:32 2009 +++ phpruntests/src/rtClassMap.php Tue Jun 23 12:59:51 2009 @@ -48,7 +48,7 @@ 'rtPhptFilterIterator' = 'rtPhptFilterIterator.php', 'rtText' = 'rtText.php', 'rtUtil' = 'rtUtil.php', -'rtCodeRunnerException'= 'testcase/exceptions/rtCodeRunnerException.php', +'rtPhpRunnerException' = 'testcase/exceptions/rtPhpRunnerException.php', 'rtTestOutputWriterList' = 'testcase/output/rtTestOutputWriterList.php', 'rtTestOutputWriterXML'= 'testcase/output/rtTestOutputWriterXML.php', 'rtHasMandatorySections' = 'testcase/preconditions/rtHasMandatorySections.php', http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/exceptions/rtPhpRunnerException.php?view=markuprev=1.1 Index: phpruntests/src/testcase/exceptions/rtPhpRunnerException.php +++ phpruntests/src/testcase/exceptions/rtPhpRunnerException.php ?php /** * */ class rtPhpRunnerException extends RunTimeException { } ? -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src rtClassMap.php
zoe Tue Jun 2 08:03:32 2009 UTC Modified files: /phpruntests/srcrtClassMap.php Log: new status class http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.11r2=1.12diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.11 phpruntests/src/rtClassMap.php:1.12 --- phpruntests/src/rtClassMap.php:1.11 Mon May 25 12:48:40 2009 +++ phpruntests/src/rtClassMap.php Tue Jun 2 08:03:32 2009 @@ -1,20 +1,10 @@ ?php /** - * rtClassMap - * * Autoload Class Map * * This is a generated file. Do not edit! * * To re-generate this file, run the script BuildClassMap.php. - * - * @category Testing - * @packageRUNTESTS - * @author Zoe Slattery z...@php.net - * @author Stefan Priebsch sprieb...@php.net - * @copyright 2009 The PHP Group - * @licensehttp://www.php.net/license/3_01.txt PHP License 3.01 - * */ $rtClassMap = array( 'rtEnvironmentException' = 'configuration/exceptions/rtEnvironmentException.php', @@ -73,6 +63,7 @@ 'rtTestOutputWriter' = 'testcase/rtTestOutputWriter.php', 'rtTestPreCondition' = 'testcase/rtTestPreCondition.php', 'rtTestResults'= 'testcase/rtTestResults.php', +'rtTestStatus' = 'testcase/rtTestStatus.php', 'rtArgsSection'= 'testcase/sections/configurationsections/rtArgsSection.php', 'rtCookieSection' = 'testcase/sections/configurationsections/rtCookieSection.php', 'rtDeflatePostSection' = 'testcase/sections/configurationsections/rtDeflatePostSection.php', -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src rtClassMap.php /src/testcase/preconditions rtIsSectionImplemented.php /src/testcase/sections rtSection.php /src/testcase/sections/executablesections _rtFileExternalS
g2 Fri May 15 09:58:22 2009 UTC Added files: /phpruntests/src/testcase/sections/executablesections rtFileExternalSection.php _rtFileExternalSection.php Modified files: /phpruntests/src/testcase/sections rtSection.php /phpruntests/src/testcase/preconditions rtIsSectionImplemented.php /phpruntests/srcrtClassMap.php Log: phpruntests - implemented FILE_EXTERNAL-section (not final) http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/sections/rtSection.php?r1=1.9r2=1.10diff_format=u Index: phpruntests/src/testcase/sections/rtSection.php diff -u phpruntests/src/testcase/sections/rtSection.php:1.9 phpruntests/src/testcase/sections/rtSection.php:1.10 --- phpruntests/src/testcase/sections/rtSection.php:1.9 Thu May 14 19:56:30 2009 +++ phpruntests/src/testcase/sections/rtSection.php Fri May 15 09:58:21 2009 @@ -24,6 +24,7 @@ 'DEFLATE_POST' = 'rtDeflatePostSection', 'POST_RAW' = 'rtPostRawSection', 'COOKIE'= 'rtCookieSection', +'FILE_EXTERNAL' = 'rtFileExternalSection', 'EXPECTHEADERS' = 'rtExpectHeadersSection', ); http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/preconditions/rtIsSectionImplemented.php?r1=1.8r2=1.9diff_format=u Index: phpruntests/src/testcase/preconditions/rtIsSectionImplemented.php diff -u phpruntests/src/testcase/preconditions/rtIsSectionImplemented.php:1.8 phpruntests/src/testcase/preconditions/rtIsSectionImplemented.php:1.9 --- phpruntests/src/testcase/preconditions/rtIsSectionImplemented.php:1.8 Thu May 14 19:56:30 2009 +++ phpruntests/src/testcase/preconditions/rtIsSectionImplemented.php Fri May 15 09:58:21 2009 @@ -23,6 +23,7 @@ 'DEFLATE_POST' = 'rtDeflatePostSection', 'POST_RAW'= 'rtPostRawSection', 'COOKIE'= 'rtCookieSection', +'FILE_EXTERNAL' = 'rtFileExternalSection', 'EXPECTHEADERS' = 'rtExpectHeadersSection', ); http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.8r2=1.9diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.8 phpruntests/src/rtClassMap.php:1.9 --- phpruntests/src/rtClassMap.php:1.8 Thu May 14 19:56:30 2009 +++ phpruntests/src/rtClassMap.php Fri May 15 09:58:21 2009 @@ -73,6 +73,7 @@ 'rtPostRawSection' = 'testcase/sections/configurationsections/rtPostRawSection.php', 'rtPostSection'= 'testcase/sections/configurationsections/rtPostSection.php', 'rtCleanSection' = 'testcase/sections/executablesections/rtCleanSection.php', +'rtFileExternalSection'= 'testcase/sections/executablesections/rtFileExternalSection.php', 'rtFileSection'= 'testcase/sections/executablesections/rtFileSection.php', 'rtSkipIfSection' = 'testcase/sections/executablesections/rtSkipIfSection.php', 'rtCreditsSection' = 'testcase/sections/informationsections/rtCreditsSection.php', http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/sections/executablesections/rtFileExternalSection.php?view=markuprev=1.1 Index: phpruntests/src/testcase/sections/executablesections/rtFileExternalSection.php +++ phpruntests/src/testcase/sections/executablesections/rtFileExternalSection.php ?php /** * rtFileExternalSection * Executes the code in the --FILE_EXTERNAL-- section * * @category Testing * @package RUNTESTS * @authorZoe Slattery z...@php.net * @authorStefan Priebsch sprieb...@php.net * @authorGeorg Gradwohl g...@php.net * @copyright 2009 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 * @link http://qa.php.net/ */ class rtFileExternalSection extends rtFileSection { public function run(rtPhpTest $testCase, rtRuntestsConfiguration $runConfiguration) { if ($this-copyExternalFileContent() === true) { return parent::run($testCase, $runConfiguration); } return $this-status; } private function copyExternalFileContent() { if (sizeof($this-sectionContents) == 1) { $file = $this-sectionContents[0]; // don't allow tests to retrieve files from anywhere but this subdirectory $file = dirname($this-fileName).'/'.trim(str_replace('..', '', $file)); if (file_exists($file)) { $this-sectionContents[0] = file_get_contents($file); return true; } else { $this-status['fail'] = 'Can not open external file
[PHP-CVS] cvs: phpruntests /src rtClassMap.php
zoe Mon May 11 10:49:20 2009 UTC Modified files: /phpruntests/srcrtClassMap.php Log: Updated http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.6r2=1.7diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.6 phpruntests/src/rtClassMap.php:1.7 --- phpruntests/src/rtClassMap.php:1.6 Wed May 6 20:45:42 2009 +++ phpruntests/src/rtClassMap.php Mon May 11 10:49:20 2009 @@ -7,10 +7,10 @@ 'rtIfParallelHasPcntl' = 'configuration/preconditions/rtIfParallelHasPcntl.php', 'rtIsExecutableSet'= 'configuration/preconditions/rtIsExecutableSet.php', 'rtIsPcreLoaded' = 'configuration/preconditions/rtIsPcreLoaded.php', +'rtIsPhpVersionCorrect'= 'configuration/preconditions/rtIsPhpVersionCorrect.php', 'rtIsProcOpenAvailable'= 'configuration/preconditions/rtIsProcOpenAvailable.php', 'rtIsSafeModeDisabled' = 'configuration/preconditions/rtIsSafeModeDisabled.php', 'rtIsTestFileSpecified'= 'configuration/preconditions/rtIsTestFileSpecified.php', -'rtIsPhpVersionCorrect'= 'configuration/preconditions/rtIsPhpVersionCorrect.php', 'rtAddToCommandLine' = 'configuration/rtAddToCommandLine.php', 'rtCommandLineOptions' = 'configuration/rtCommandLineOptions.php', 'rtEnvironmentVariables' = 'configuration/rtEnvironmentVariables.php', @@ -57,11 +57,13 @@ 'rtTestPreCondition' = 'testcase/rtTestPreCondition.php', 'rtTestResults'= 'testcase/rtTestResults.php', 'rtArgsSection'= 'testcase/sections/configurationsections/rtArgsSection.php', +'rtCookieSection' = 'testcase/sections/configurationsections/rtCookieSection.php', 'rtDeflatePostSection' = 'testcase/sections/configurationsections/rtDeflatePostSection.php', 'rtEnvSection' = 'testcase/sections/configurationsections/rtEnvSection.php', 'rtGetSection' = 'testcase/sections/configurationsections/rtGetSection.php', 'rtGzipPostSection'= 'testcase/sections/configurationsections/rtGzipPostSection.php', 'rtIniSection' = 'testcase/sections/configurationsections/rtIniSection.php', +'rtPostRawSection' = 'testcase/sections/configurationsections/rtPostRawSection.php', 'rtPostSection'= 'testcase/sections/configurationsections/rtPostSection.php', 'rtCleanSection' = 'testcase/sections/executablesections/rtCleanSection.php', 'rtFileSection'= 'testcase/sections/executablesections/rtFileSection.php', -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src rtClassMap.php /src/testcase/sections/configurationsections rtGzipPostSection.php /tests/testcase/sections/configurationsections rtGzipPostSectionTest.php
zoe Thu Apr 30 08:12:32 2009 UTC Added files: /phpruntests/tests/testcase/sections/configurationsections rtGzipPostSectionTest.php Modified files: /phpruntests/src/testcase/sections/configurationsections rtGzipPostSection.php /phpruntests/srcrtClassMap.php Log: fixes to gzip_post section and a test case http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/sections/configurationsections/rtGzipPostSection.php?r1=1.1r2=1.2diff_format=u Index: phpruntests/src/testcase/sections/configurationsections/rtGzipPostSection.php diff -u phpruntests/src/testcase/sections/configurationsections/rtGzipPostSection.php:1.1 phpruntests/src/testcase/sections/configurationsections/rtGzipPostSection.php:1.2 --- phpruntests/src/testcase/sections/configurationsections/rtGzipPostSection.php:1.1 Wed Apr 29 18:51:33 2009 +++ phpruntests/src/testcase/sections/configurationsections/rtGzipPostSection.php Thu Apr 30 08:12:32 2009 @@ -12,7 +12,7 @@ * @license http://www.php.net/license/3_01.txt PHP License 3.01 * @link http://qa.php.net/ */ -class rtPostSection extends rtConfigurationSection +class rtGzipPostSection extends rtConfigurationSection { private $postVariables = array(); private $postFileName; @@ -21,13 +21,14 @@ { $postString = implode('\n', $this-sectionContents); $gzipPostString = gzencode($postString); + $this-postVariables['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'; $this-postVariables['CONTENT_LENGTH'] = strlen($gzipPostString); $this-postVariables['REQUEST_METHOD'] = 'POST'; $this-postFileName = tempnam(sys_get_temp_dir(), 'post'); -file_put_contents($this-postFileName, $postString); +file_put_contents($this-postFileName, $gzipPostString); } /** http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.3r2=1.4diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.3 phpruntests/src/rtClassMap.php:1.4 --- phpruntests/src/rtClassMap.php:1.3 Mon Apr 27 21:05:33 2009 +++ phpruntests/src/rtClassMap.php Thu Apr 30 08:12:32 2009 @@ -58,6 +58,7 @@ 'rtArgsSection'= 'testcase/sections/configurationsections/rtArgsSection.php', 'rtEnvSection' = 'testcase/sections/configurationsections/rtEnvSection.php', 'rtGetSection' = 'testcase/sections/configurationsections/rtGetSection.php', +'rtGzipPostSection'= 'testcase/sections/configurationsections/rtGzipPostSection.php', 'rtIniSection' = 'testcase/sections/configurationsections/rtIniSection.php', 'rtPostSection'= 'testcase/sections/configurationsections/rtPostSection.php', 'rtCleanSection' = 'testcase/sections/executablesections/rtCleanSection.php', http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php?view=markuprev=1.1 Index: phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php +++ phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php ?php require_once 'PHPUnit/Framework.php'; require_once dirname(__FILE__) . '../../../../../src/rtAutoload.php'; class rtGzipPostSectionTest extends PHPUnit_Framework_TestCase { public function testCreateInstance() { $postSection = new rtGzipPostSection('GZIP_POST', array('hello=Worldgoodbye=MrChips')); $envVars = $postSection-getPostVariables(); $this-assertEquals('POST', $envVars['REQUEST_METHOD']); $this-assertEquals('application/x-www-form-urlencoded',$envVars['CONTENT_TYPE']); $this-assertEquals(strlen(gzencode('hello=Worldgoodbye=MrChips')), $envVars['CONTENT_LENGTH']); $fileName = $postSection-getPostFileName(); $string = file_get_contents($fileName); $expectedString = gzencode('hello=Worldgoodbye=MrChips'); $this-assertEquals($expectedString, $string); } } ? -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src rtClassMap.php /src/testcase/sections/configurationsections rtDeflatePostSection.php /tests/testcase/sections/configurationsections rtDeflatePostSectionTest.php
zoe Thu Apr 30 20:07:43 2009 UTC Added files: /phpruntests/src/testcase/sections/configurationsections rtDeflatePostSection.php /phpruntests/tests/testcase/sections/configurationsections rtDeflatePostSectionTest.php Modified files: /phpruntests/srcrtClassMap.php Log: deflate post section http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.4r2=1.5diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.4 phpruntests/src/rtClassMap.php:1.5 --- phpruntests/src/rtClassMap.php:1.4 Thu Apr 30 08:12:32 2009 +++ phpruntests/src/rtClassMap.php Thu Apr 30 20:07:43 2009 @@ -56,6 +56,7 @@ 'rtTestPreCondition' = 'testcase/rtTestPreCondition.php', 'rtTestResults'= 'testcase/rtTestResults.php', 'rtArgsSection'= 'testcase/sections/configurationsections/rtArgsSection.php', +'rtDeflatePostSection' = 'testcase/sections/configurationsections/rtDeflatePostSection.php', 'rtEnvSection' = 'testcase/sections/configurationsections/rtEnvSection.php', 'rtGetSection' = 'testcase/sections/configurationsections/rtGetSection.php', 'rtGzipPostSection'= 'testcase/sections/configurationsections/rtGzipPostSection.php', http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/sections/configurationsections/rtDeflatePostSection.php?view=markuprev=1.1 Index: phpruntests/src/testcase/sections/configurationsections/rtDeflatePostSection.php +++ phpruntests/src/testcase/sections/configurationsections/rtDeflatePostSection.php ?php /** * rtPostSection * Sets environment variables for DEFLATE_POST section * * * @category Testing * @package RUNTESTS * @authorZoe Slattery z...@php.net * @authorStefan Priebsch sprieb...@php.net * @copyright 2009 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 * @link http://qa.php.net/ */ class rtDeflatePostSection extends rtConfigurationSection { private $postVariables = array(); private $postFileName; protected function init() { $postString = implode('\n', $this-sectionContents); $compressedPostString = gzcompress($postString); $this-postVariables['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'; $this-postVariables['CONTENT_LENGTH'] = strlen($compressedPostString); $this-postVariables['REQUEST_METHOD'] = 'POST'; $this-postFileName = tempnam(sys_get_temp_dir(), 'post'); file_put_contents($this-postFileName, $compressedPostString); } /** * Additional POST environment variables required by the test * * @return array */ public function getPostVariables() { return $this-postVariables; } public function getPostFileName() { return $this-postFileName; } } ? http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php?view=markuprev=1.1 Index: phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php +++ phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php ?php require_once 'PHPUnit/Framework.php'; require_once dirname(__FILE__) . '../../../../../src/rtAutoload.php'; class rtDeflatePostSectionTest extends PHPUnit_Framework_TestCase { public function testCreateInstance() { $postSection = new rtDeflatePostSection('GZIP_POST', array('hello=Worldgoodbye=MrChips')); $envVars = $postSection-getPostVariables(); $this-assertEquals('POST', $envVars['REQUEST_METHOD']); $this-assertEquals('application/x-www-form-urlencoded',$envVars['CONTENT_TYPE']); $this-assertEquals(strlen(gzcompress('hello=Worldgoodbye=MrChips')), $envVars['CONTENT_LENGTH']); $fileName = $postSection-getPostFileName(); $string = file_get_contents($fileName); $expectedString = gzcompress('hello=Worldgoodbye=MrChips'); $this-assertEquals($expectedString, $string); } } ? -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src rtClassMap.php
zoe Mon Apr 27 21:05:33 2009 UTC Modified files: /phpruntests/srcrtClassMap.php Log: Start of POST implementation http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.2r2=1.3diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.2 phpruntests/src/rtClassMap.php:1.3 --- phpruntests/src/rtClassMap.php:1.2 Sun Apr 26 07:38:11 2009 +++ phpruntests/src/rtClassMap.php Mon Apr 27 21:05:33 2009 @@ -59,6 +59,7 @@ 'rtEnvSection' = 'testcase/sections/configurationsections/rtEnvSection.php', 'rtGetSection' = 'testcase/sections/configurationsections/rtGetSection.php', 'rtIniSection' = 'testcase/sections/configurationsections/rtIniSection.php', +'rtPostSection'= 'testcase/sections/configurationsections/rtPostSection.php', 'rtCleanSection' = 'testcase/sections/executablesections/rtCleanSection.php', 'rtFileSection'= 'testcase/sections/executablesections/rtFileSection.php', 'rtSkipIfSection' = 'testcase/sections/executablesections/rtSkipIfSection.php', -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src rtClassMap.php
zoe Sun Apr 26 07:38:11 2009 UTC Modified files: /phpruntests/srcrtClassMap.php Log: Added Get setion http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.1.1.1r2=1.2diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.1.1.1 phpruntests/src/rtClassMap.php:1.2 --- phpruntests/src/rtClassMap.php:1.1.1.1 Wed Apr 15 16:30:18 2009 +++ phpruntests/src/rtClassMap.php Sun Apr 26 07:38:11 2009 @@ -57,6 +57,7 @@ 'rtTestResults'= 'testcase/rtTestResults.php', 'rtArgsSection'= 'testcase/sections/configurationsections/rtArgsSection.php', 'rtEnvSection' = 'testcase/sections/configurationsections/rtEnvSection.php', +'rtGetSection' = 'testcase/sections/configurationsections/rtGetSection.php', 'rtIniSection' = 'testcase/sections/configurationsections/rtIniSection.php', 'rtCleanSection' = 'testcase/sections/executablesections/rtCleanSection.php', 'rtFileSection'= 'testcase/sections/executablesections/rtFileSection.php', -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php