cvs: phpruntests /tests/testcase rtTestConfigurationTest.php rtTestDifferenceTest.php
| From: | Zoe Slattery | Date: | Sun, 17 May 2009 12:53:51 +0000 |
| Subject: | cvs: phpruntests /tests/testcase rtTestConfigurationTest.php rtTestDifferenceTest.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57914@lists.php.net to get a copy of this message | ||
zoe Sun May 17 12:53:51 2009 UTC
Modified files:
/phpruntests/tests/testcase rtTestDifferenceTest.php
rtTestConfigurationTest.php
Log:
fix tests
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/rtTestDifferenceTest.php?r1=1.3&r2=1.4&diff_format=u
Index: phpruntests/tests/testcase/rtTestDifferenceTest.php
diff -u phpruntests/tests/testcase/rtTestDifferenceTest.php:1.3
phpruntests/tests/testcase/rtTestDifferenceTest.php:1.4
--- phpruntests/tests/testcase/rtTestDifferenceTest.php:1.3 Fri Apr 24 09:42:01 2009
+++ phpruntests/tests/testcase/rtTestDifferenceTest.php Sun May 17 12:53:51 2009
@@ -7,7 +7,7 @@
{
public function testTestDifference()
{
- $expectSection = new rtExpectSection('EXPECT', array('Hello World'));
+ $expectSection = rtExpectSection::getInstance('EXPECT', array('Hello
World'));
$testDifference = new rtTestDifference($expectSection, 'Hello Dolly');
$difference = $testDifference->getDifference();
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/rtTestConfigurationTest.php?r1=1.7&r2=1.8&diff_format=u
Index: phpruntests/tests/testcase/rtTestConfigurationTest.php
diff -u phpruntests/tests/testcase/rtTestConfigurationTest.php:1.7
phpruntests/tests/testcase/rtTestConfigurationTest.php:1.8
--- phpruntests/tests/testcase/rtTestConfigurationTest.php:1.7 Wed May 13 10:04:42 2009
+++ phpruntests/tests/testcase/rtTestConfigurationTest.php Sun May 17 12:53:51 2009
@@ -11,10 +11,10 @@
{
$this->php = $this->php = trim(shell_exec("which php"));
- $this->sections['ARGS'] = new rtArgsSection('ARGS', array('-vvv
-a value -1111 -2 -v'));
- $this->sections['ENV'] = new rtEnvSection('ENV', array('env1 =
ENV1', 'env2=ENV2'));
- $this->sections['INI'] = new rtIniSection('INI',
array('error_reporting=E_ALL | E_STRICT | E_DEPRECATED', 'assert.active = 1'));
- $this->sections['FILE'] = new rtFileSection('FILE',
array('blah'));
+ $this->sections['ARGS'] = rtArgsSection::getInstance('ARGS',
array('-vvv -a value -1111 -2 -v'));
+ $this->sections['ENV'] = rtEnvSection::getInstance('ENV',
array('env1 = ENV1', 'env2=ENV2'));
+ $this->sections['INI'] = rtIniSection::getInstance('INI',
array('error_reporting=E_ALL | E_STRICT | E_DEPRECATED', 'assert.active = 1'));
+ $this->sections['FILE'] = rtFileSection::getInstance('FILE',
array('blah'));
}