[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.15&r2=1.16&diff_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.5&r2=1.6&diff_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.13&r2=1.14&diff_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.5&r2=1.6&diff_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/r
[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.14&r2=1.15&diff_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.2&r2=1.3&diff_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 @@ http://cvs.php.net/viewvc.cgi/phpruntests/src/configuration/exceptions/rtMissingArgumentException.php?r1=1.2&r2=1.3&diff_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 @@ http://cvs.php.net/viewvc.cgi/phpruntests/src/configuration/exceptions/rtUnknownOptionException.php?r1=1.2&r2=1.3&diff_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 @@ http://cvs.php.net/viewvc.cgi/phpruntests/src/configuration/exceptions/rtUnknownIniSettingException.php?r1=1.2&r2=1.3&diff_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 @@ http://cvs.php.net/viewvc.cgi/phpruntests/src/run-tests.php?r1=1.3&r2=1.4&diff_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 = microtime(true); + +print "\n".($e-$s)." sec\n\n"; + ?> http://cvs.php.net/viewvc.cgi/phpruntests/src/rtClassMap.php?r1=1.13&r2=1.14&diff_format=u Index: phpruntests/src/rtClassMap.php diff -u phpruntests/src/rtClassMap.php:1.13 phpruntests/src/rtClassMap.php:1.14 --- phpruntests/src/rtClassMap.php:1.13 Tue Jun 23 12:59:51 2009 +++ phpruntests/src/rtClassMap.php Fri Jun 26 00:07:24 2009 @@ -8,6 +8,7 @@ */ $rtClassMap = array( 'rtEnvironmentException' => 'configurat
[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.12&r2=1.13&diff_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=markup&rev=1.1 Index: phpruntests/src/testcase/exceptions/rtPhpRunnerException.php +++ phpruntests/src/testcase/exceptions/rtPhpRunnerException.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 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.11&r2=1.12&diff_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 @@ - * @author Stefan Priebsch - * @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.9&r2=1.10&diff_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.8&r2=1.9&diff_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.8&r2=1.9&diff_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=markup&rev=1.1 Index: phpruntests/src/testcase/sections/executablesections/rtFileExternalSection.php +++ phpruntests/src/testcase/sections/executablesections/rtFileExternalSection.php * @authorStefan Priebsch * @authorGeorg Gradwohl * @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 '.$file; } } else { $this->status['fail'] = 'One file per testcase permitted.'; } re
[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.6&r2=1.7&diff_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 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.4&r2=1.5&diff_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=markup&rev=1.1 Index: phpruntests/src/testcase/sections/configurationsections/rtDeflatePostSection.php +++ phpruntests/src/testcase/sections/configurationsections/rtDeflatePostSection.php * @authorStefan Priebsch * @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=markup&rev=1.1 Index: phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php +++ phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php getPostVariables(); $this->assertEquals('POST', $envVars['REQUEST_METHOD']); $this->assertEquals('application/x-www-form-urlencoded',$envVars['CONTENT_TYPE']); $this->assertEquals(strlen(gzcompress('hello=World&goodbye=MrChips')), $envVars['CONTENT_LENGTH']); $fileName = $postSection->getPostFileName(); $string = file_get_contents($fileName); $expectedString = gzcompress('hello=World&goodbye=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 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.1&r2=1.2&diff_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.3&r2=1.4&diff_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=markup&rev=1.1 Index: phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php +++ phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php getPostVariables(); $this->assertEquals('POST', $envVars['REQUEST_METHOD']); $this->assertEquals('application/x-www-form-urlencoded',$envVars['CONTENT_TYPE']); $this->assertEquals(strlen(gzencode('hello=World&goodbye=MrChips')), $envVars['CONTENT_LENGTH']); $fileName = $postSection->getPostFileName(); $string = file_get_contents($fileName); $expectedString = gzencode('hello=World&goodbye=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.2&r2=1.3&diff_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.1&r2=1.2&diff_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