com phpruntests: add a test whic just assumes that the env var isnt set: tests/configuration/settings/rtPhpCgiExecutableSettingTest.php
| From: | David Soria Parra | Date: | Sun, 17 May 2009 14:10:57 +0000 |
| Subject: | com phpruntests: add a test whic just assumes that the env var isnt set: tests/configuration/settings/rtPhpCgiExecutableSettingTest.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66446@lists.php.net to get a copy of this message | ||
Commit: a89b8219cd861f13dc3517c9f5f783c21daf81e4
Author: Zoe Slattery <zoe@php.net> Sun, 17 May 2009 14:10:57 +0000
Parents: 01b5bf3cbfc057e07af74fbf08245c6cdf2327be
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=a89b8219cd861f13dc3517c9f5f783c21daf81e4
Log:
add a test whic just assumes that the env var isnt set
Changed paths:
M tests/configuration/settings/rtPhpCgiExecutableSettingTest.php
Diff:
diff --git a/tests/configuration/settings/rtPhpCgiExecutableSettingTest.php
b/tests/configuration/settings/rtPhpCgiExecutableSettingTest.php
index f625cb4..e8e3f69 100644
--- a/tests/configuration/settings/rtPhpCgiExecutableSettingTest.php
+++ b/tests/configuration/settings/rtPhpCgiExecutableSettingTest.php
@@ -25,16 +25,22 @@ class rtPhpCgiExecutableSettingTest extends PHPUnit_Framework_TestCase
$configuration = rtRuntestsConfiguration::getInstance(array('run-tests.php',
'test.phpt'));
$configuration->setEnvironmentVariable('TEST_PHP_CGI_EXECUTABLE',
'');
$setting = new rtPhpCgiExecutableSetting($configuration);
-
+
$this->assertEquals(null, $setting->get());
}
- public function testSetFromCliExecutableName() {
+ public function testSetFromCliExecutableName() {
$configuration = rtRuntestsConfiguration::getInstance(array('run-tests.php',
'-p', '/a/sapi/cli/php', 'test.phpt'));
$configuration->setEnvironmentVariable('TEST_PHP_CGI_EXECUTABLE', null);
$setting = new rtPhpCgiExecutableSetting($configuration);
$this->assertEquals('/a/sapi/cgi/php-cgi', $setting->get());
}
+ public function testSetFromCli2() {
+ $configuration = rtRuntestsConfiguration::getInstance(array('run-tests.php',
'-p', '/a/sapi/cli/php', 'test.phpt'));
+ $setting = new rtPhpCgiExecutableSetting($configuration);
+
+ $this->assertEquals('/a/sapi/cgi/php-cgi', $setting->get());
+ }
}
?>