cvs: phpruntests /tests/testcase/sections/executablesections rtFileExternalSectionTest.php
| From: | Zoe Slattery | Date: | Tue, 09 Jun 2009 20:27:57 +0000 |
| Subject: | cvs: phpruntests /tests/testcase/sections/executablesections rtFileExternalSectionTest.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-58592@lists.php.net to get a copy of this message | ||
zoe Tue Jun 9 20:27:57 2009 UTC
Modified files:
/phpruntests/tests/testcase/sections/executablesections
rtFileExternalSectionTest.php
Log:
modified file external test
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php?r1=1.2&r2=1.3&diff_format=u
Index: phpruntests/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php
diff -u phpruntests/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php:1.2
phpruntests/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php:1.3
--- phpruntests/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php:1.2 Mon May
18 22:38:27 2009
+++ phpruntests/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php Tue Jun 9
20:27:57 2009
@@ -12,28 +12,6 @@
$this->assertEquals('<?php', $code[0]);
}
-
- public function testTooMuchFiles()
- {
- $fileSection = rtFileExternalSection::getInstance('FILE_EXTERNAL',
array('file1','file2'));
- $content = $fileSection->getContents();
- $config = rtRuntestsConfiguration::getInstance(array());
- $test = new rtPhpTest($content, 'TEST', array('FILE_EXTERNAL'), $config);
-
- $status = $fileSection->run($test, $config);
-
- $this->assertEquals('One file per testcase permitted.',
$status['fail']);
- }
-
- public function testNotExistingFile()
- {
- $fileSection = rtFileExternalSection::getInstance('FILE_EXTERNAL',
array('file1'));
- $content = $fileSection->getContents();
- $config = rtRuntestsConfiguration::getInstance(array());
- $test = new rtPhpTest($content, 'TEST', array('FILE_EXTERNAL'),
$config);
-
- $this->assertEquals('Can not open external file /file1',
$status['fail']);
- }
}
?>
\ No newline at end of file