com phpruntests: minor bugfix - ensure to request skip-section only if it exists: src/testcase/rtTestResults.php
| From: | David Soria Parra | Date: | Mon, 20 Jul 2009 15:00:54 +0000 |
| Subject: | com phpruntests: minor bugfix - ensure to request skip-section only if it exists: src/testcase/rtTestResults.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66317@lists.php.net to get a copy of this message | ||
Commit: ce9be909ecdb68829486d9c5116fea0679327244
Author: Georg Gradwohl <g2@php.net> Mon, 20 Jul 2009 15:00:54 +0000
Parents: 41cc6451cc5c13403c8f5ade2aa17d8374726fae
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=ce9be909ecdb68829486d9c5116fea0679327244
Log:
minor bugfix - ensure to request skip-section only if it exists
Changed paths:
M src/testcase/rtTestResults.php
Diff:
diff --git a/src/testcase/rtTestResults.php b/src/testcase/rtTestResults.php
index a65dd77..2b1d52e 100644
--- a/src/testcase/rtTestResults.php
+++ b/src/testcase/rtTestResults.php
@@ -134,7 +134,7 @@ class rtTestResults
{
if ($runConfiguration->hasCommandLineOption('keep-all') ||
$runConfiguration->hasCommandLineOption('keep-skip')) {
$this->savedFileNames['skipif'] = $this->testName.
'skipif.php';
- } else {
+ } else if($testCase->hasSection('SKIPIF')) {
$skipSection = $testCase->getSection('SKIPIF');
$skipSection->deleteFile();
}