com phpruntests: modified file external test: tests/testcase/sections/executablesections/rtFileExternalSectionTest.php
| From: | David Soria Parra | Date: | Tue, 09 Jun 2009 20:27:57 +0000 |
| Subject: | com phpruntests: modified file external test: tests/testcase/sections/executablesections/rtFileExternalSectionTest.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66423@lists.php.net to get a copy of this message | ||
Commit: 1c5019ba7482f1e5dc05c2267350a57e9f3d09cf
Author: Zoe Slattery <zoe@php.net> Tue, 9 Jun 2009 20:27:57 +0000
Parents: 9764a69565153184b973e81adcc2c98fd5f55bf6
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=1c5019ba7482f1e5dc05c2267350a57e9f3d09cf
Log:
modified file external test
Changed paths:
M tests/testcase/sections/executablesections/rtFileExternalSectionTest.php
Diff:
diff --git a/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php
b/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php
index b4b41ec..8b22317 100644
--- a/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php
+++ b/tests/testcase/sections/executablesections/rtFileExternalSectionTest.php
@@ -12,28 +12,6 @@ class rtFileExternalSectionTest extends PHPUnit_Framework_TestCase
$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