com phpruntests: changes in line with rtTestStatus - missed before: src/testrun/rtPhpTestRun.php

From: Date: Tue, 30 Jun 2009 13:35:42 +0000
Subject: com phpruntests: changes in line with rtTestStatus - missed before: src/testrun/rtPhpTestRun.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66387@lists.php.net to get a copy of this message
Commit: 9bd41d4c9d1c3828adb8bbe226539f5ced96bc6d Author: Zoe Slattery <zoe@php.net> Tue, 30 Jun 2009 13:35:42 +0000 Parents: 49084535a6f448727c8f8d2a077eb9ff0aef3314 Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=9bd41d4c9d1c3828adb8bbe226539f5ced96bc6d Log: changes in line with rtTestStatus - missed before Changed paths: M src/testrun/rtPhpTestRun.php Diff: diff --git a/src/testrun/rtPhpTestRun.php b/src/testrun/rtPhpTestRun..php index c12cd1f..156aacb 100644 --- a/src/testrun/rtPhpTestRun.php +++ b/src/testrun/rtPhpTestRun.php @@ -121,13 +121,13 @@ class rtPhpTestRun //Read the test file $testFile = new rtPhpTestFile(); $testFile->doRead($testName); - $testFile->normaliseLineEndings($testName); + $testFile->normaliseLineEndings(); + $testStatus = new rtTestStatus($testFile->getTestName()); if ($testFile->arePreconditionsMet()) { - $testCase = new rtPhpTest($testFile->getContents(), $testFile->getTestName(), $testFile->getSectionHeadings(), $runConfiguration, $testStatus); //Setup and set the local environment for the test case @@ -137,7 +137,9 @@ class rtPhpTestRun $results->processResults($testCase, $runConfiguration); } else { - $results = new rtTestResults(null, $testFile->getExitMessage(), $testFile->getTestName()); + $testStatus->setTrue('bork'); + $testStatus->setMessage('bork', $testFile->getExitMessage()); + $results = new rtTestResults(null, $testStatus); } $testOutputWriter = rtTestOutputWriter::getInstance(array($results), 'list');

« previous php.qa (#66387) next »