zoe Sun May 17 12:54:41 2009 UTC Modified files: /phpruntests/tests/testcase/sections/executablesections rtSkipIfSectionTest.php rtFileSectionTest.php rtCleanSectionTest.php Log: fixed tests http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php?r1=1.3&r2=1.4&diff_format=u Index: phpruntests/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php diff -u phpruntests/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php:1.3 phpruntests/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php:1.4 --- phpruntests/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php:1.3 Sun Apr 26 07:12:58 2009 +++ phpruntests/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php Sun May 17 12:54:41 2009 @@ -7,7 +7,7 @@ { public function testCreateInstance() { - $skipifSection = new rtSkipIfSection('SKIPIF', array('<?php', 'echo "hello world";', '?>')); + $skipifSection = rtSkipIfSection::getInstance('SKIPIF', array('<?php', 'echo "hello world";', '?>')); $code = $skipifSection->getContents(); $this->assertEquals('<?php', $code[0]); http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/executablesections/rtFileSectionTest.php?r1=1.4&r2=1.5&diff_format=u Index: phpruntests/tests/testcase/sections/executablesections/rtFileSectionTest.php diff -u phpruntests/tests/testcase/sections/executablesections/rtFileSectionTest.php:1.4 phpruntests/tests/testcase/sections/executablesections/rtFileSectionTest.php:1.5 --- phpruntests/tests/testcase/sections/executablesections/rtFileSectionTest.php:1.4 Thu May 14 19:56:30 2009 +++ phpruntests/tests/testcase/sections/executablesections/rtFileSectionTest.php Sun May 17 12:54:41 2009 @@ -7,14 +7,14 @@ { public function testCreateInstance() { - $fileSection = new rtFileSection('FILE', array('<?php', 'echo "hello world";', '?>')); + $fileSection = rtFileSection::getInstance('FILE', array('<?php', 'echo "hello world";', '?>')); $code = $fileSection->getContents(); $this->assertEquals('<?php', $code[0]); } public function testDone() { - $fileSection = new rtFileSection('FILE', array('<?php', 'echo "hello world";', '?>', '===DONE===', 'ignore-me')); + $fileSection = rtFileSection::getInstance('FILE', array('<?php', 'echo "hello world";', '?>', '===DONE===', 'ignore-me')); $code = $fileSection->getContents(); $last = count($code) - 1; @@ -23,7 +23,7 @@ public function testDone2() { - $fileSection = new rtFileSection('FILE', array('<?php', 'echo "hello world";', '?>', '===DoNe===', 'ignore-me')); + $fileSection = rtFileSection::getInstance('FILE', array('<?php', 'echo "hello world";', '?>', '===DoNe===', 'ignore-me')); $code = $fileSection->getContents(); $last = count($code) - 1; http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/executablesections/rtCleanSectionTest.php?r1=1.2&r2=1.3&diff_format=u Index: phpruntests/tests/testcase/sections/executablesections/rtCleanSectionTest.php diff -u phpruntests/tests/testcase/sections/executablesections/rtCleanSectionTest.php:1.2 phpruntests/tests/testcase/sections/executablesections/rtCleanSectionTest.php:1.3 --- phpruntests/tests/testcase/sections/executablesections/rtCleanSectionTest.php:1.2 Fri Apr 24 09:42:02 2009 +++ phpruntests/tests/testcase/sections/executablesections/rtCleanSectionTest.php Sun May 17 12:54:41 2009 @@ -7,7 +7,7 @@ { public function testCreateInstance() { - $cleanSection = new rtCleanSection('CLEAN', array('<?php', 'echo "hello world";', '?>')); + $cleanSection = rtCleanSection::getInstance('CLEAN', array('<?php', 'echo "hello world";', '?>')); $code = $cleanSection->getContents(); $this->assertEquals('<?php', $code[0]);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php