com phpruntests: Replacing status array with status object: src/testrun/rtPhpTestRun.php
| From: | David Soria Parra | Date: | Tue, 02 Jun 2009 19:52:53 +0000 |
| Subject: | com phpruntests: Replacing status array with status object: src/testrun/rtPhpTestRun.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66427@lists.php.net to get a copy of this message | ||
Commit: 2aa70e015456ff618297a6d495fe5ced99b650a0
Author: Zoe Slattery <zoe@php.net> Tue, 2 Jun 2009 19:52:53 +0000
Parents: 99983b4cafb3f95a2479e56e2564a8b23859ef55
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=2aa70e015456ff618297a6d495fe5ced99b650a0
Log:
Replacing status array with status object
Changed paths:
M src/testrun/rtPhpTestRun.php
Diff:
diff --git a/src/testrun/rtPhpTestRun.php b/src/testrun/rtPhpTestRun.php
index 72c26a7..429ca89 100644
--- a/src/testrun/rtPhpTestRun.php
+++ b/src/testrun/rtPhpTestRun.php
@@ -88,10 +88,13 @@ class rtPhpTestRun
$testFile = new rtPhpTestFile();
$testFile->doRead($testName);
$testFile->normaliseLineEndings($testName);
+
+ $testStatus = new rtTestStatus();
+ $testStatus->setTestName($testFile->getTestName());
if ($testFile->arePreconditionsMet()) {
- $testCase = new rtPhpTest($testFile->getContents(),
$testFile->getTestName(), $testFile->getSectionHeadings(), $runConfiguration);
+ $testCase = new rtPhpTest($testFile->getContents(),
$testFile->getTestName(), $testFile->getSectionHeadings(), $runConfiguration, $testStatus);
//Setup and set the local environment for the test case
$testCase->executeTest($runConfiguration);