com phpruntests: fixing stupidity in check: tests/configuration/rtRuntestsConfigurationTest.php tests/testcase/rtTestConfigurationTest.php

From: Date: Wed, 13 May 2009 10:04:42 +0000
Subject: com phpruntests: fixing stupidity in check: tests/configuration/rtRuntestsConfigurationTest.php tests/testcase/rtTestConfigurationTest.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66470@lists.php.net to get a copy of this message
Commit: cd9ea6f7b7ff1096bc890e0dc0e546898f2e825c Author: Zoe Slattery <zoe@php.net> Wed, 13 May 2009 10:04:42 +0000 Parents: 1d0e080999b4676fe811c370774de726d92da0db Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=cd9ea6f7b7ff1096bc890e0dc0e546898f2e825c Log: fixing stupidity in check Changed paths: M tests/configuration/rtRuntestsConfigurationTest.php M tests/testcase/rtTestConfigurationTest.php Diff: diff --git a/tests/configuration/rtRuntestsConfigurationTest.php b/tests/configuration/rtRuntestsConfigurationTest.php index 0884b0a..a948109 100644 --- a/tests/configuration/rtRuntestsConfigurationTest.php +++ b/tests/configuration/rtRuntestsConfigurationTest.php @@ -17,7 +17,7 @@ class rtRuntestsConfigurationTest extends PHPUnit_Framework_TestCase $testFiles = $config->getSetting('TestFiles'); - $this->assertEquals('/usr/local/bin/php', $config->getSetting('PhpExecutable')); + $this->assertEquals($this->php, $config->getSetting('PhpExecutable')); $this->assertEquals('test.phpt', $testFiles[0]); } @@ -28,7 +28,7 @@ class rtRuntestsConfigurationTest extends PHPUnit_Framework_TestCase $testFiles = $config->getSetting('TestFiles'); - $this->assertEquals('/usr/local/bin/php', $config->getSetting('PhpExecutable')); + $this->assertEquals($this->php, $config->getSetting('PhpExecutable')); $this->assertEquals('test.phpt', $testFiles[0]); } } diff --git a/tests/testcase/rtTestConfigurationTest.php b/tests/testcase/rtTestConfigurationTest.php index f8048e5..70b8743 100644 --- a/tests/testcase/rtTestConfigurationTest.php +++ b/tests/testcase/rtTestConfigurationTest.php @@ -72,7 +72,7 @@ class rtTestConfigurationTest extends PHPUnit_Framework_TestCase $testConfiguration = new rtTestConfiguration($config, $this->sections, array(),$this->sections['FILE']); $phpExe = $testConfiguration->getPhpExecutable(); - $this->assertEquals('/usr/local/bin/php', $phpExe); + $this->assertEquals($this->php, $phpExe); } public function testPHPCgiExecutable()

« previous php.qa (#66470) next »