com phpruntests: Adding PHP test executable name to the env that is passed to the test runner: src/testrun/rtPhpTestRun.php

From: Date: Wed, 22 Jul 2009 10:44:08 +0000
Subject: com phpruntests: Adding PHP test executable name to the env that is passed to the test runner: src/testrun/rtPhpTestRun.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66315@lists.php.net to get a copy of this message
Commit: 03bd0905bd14271af7cbf7916ce47f1ba6699122 Author: Zoe Slattery <zoe@php.net> Wed, 22 Jul 2009 10:44:08 +0000 Parents: 9b977945cbda10713215d2902398ce123987d71e Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=03bd0905bd14271af7cbf7916ce47f1ba6699122 Log: Adding PHP test executable name to the env that is passed to the test runner Changed paths: M src/testrun/rtPhpTestRun.php Diff: diff --git a/src/testrun/rtPhpTestRun.php b/src/testrun/rtPhpTestRun.php index b86f3e4..20c9aa7 100644 --- a/src/testrun/rtPhpTestRun.php +++ b/src/testrun/rtPhpTestRun.php @@ -31,6 +31,7 @@ class rtPhpTestRun $runConfiguration->getUserEnvironment(); $runConfiguration->configure(); + //Check help message if($runConfiguration->hasCommandLineOption('help') || $runConfiguration->hasCommandLineOption('h')) { echo rtText::get('help'); @@ -43,6 +44,12 @@ class rtPhpTestRun // $preConditionList->check($this->commandLine, $this->environmentVariables); $preConditionList->check($runConfiguration); + + //Write PHP executable name to the array of env variables. Some + //test cases expect to be able to use it. + $php = $runConfiguration->getSetting('PhpExecutable'); + $runConfiguration->setEnvironmentVariable('TEST_PHP_EXECUTABLE', $php); + if ($runConfiguration->getSetting('TestDirectories') != null) {

« previous php.qa (#66315) next »