Changeset 657
- Timestamp:
- 01/29/08 14:50:52 (11 months ago)
- Location:
- Core/trunk
- Files:
-
- 25 modified
-
src/PHPT/Case/FailureException.php (modified) (1 diff)
-
src/PHPT/Reporter/Text.php (modified) (1 diff)
-
src/PHPT/Section/EXPECTREGEX/InvalidRegexException.php (modified) (1 diff)
-
src/PHPT/Section/ExpectationAbstract/UnexpectedOutputException.php (modified) (2 diffs)
-
tests/Case/FailureException/declares-abstract-getDiff.phpt (modified) (2 diffs)
-
tests/CodeRunner/Driver/WScriptShell/_skipif.inc (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/basic-usage.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/can-handle-code-exit.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/casts-stdin-to-string.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/executes-in-own-process.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/extends-CodeRunner_Abstract.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/injects-ini-settings.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/passes-environment-variables.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/passes-in-args.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/passes-in-stdin.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/result-stores-exitcode.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/throws-exception-on-bad-executable.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/timeout.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/uses-path-to-locate-executables-if-relative.phpt (modified) (1 prop)
-
tests/CodeRunner/Driver/WScriptShell/validate-throws-exception-on-bad-executable.phpt (modified) (1 prop)
-
tests/Reporter/Null/outputs-nothing.phpt (modified) (1 diff)
-
tests/Reporter/_reporter-mocks.inc (modified) (1 diff)
-
tests/Section/Expect/UnexpectedOutputException/getDiff-outputs-diff.phpt (modified) (2 diffs)
-
tests/Section/Expectf/UnexpectedOutputException/getDiff-outputs-diff.phpt (modified) (2 diffs)
-
tests/Section/Expectregex/UnexpectedOutputException/getDiff-outputs-diff.phpt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Core/trunk/src/PHPT/Case/FailureException.php
r292 r657 8 8 } 9 9 10 abstract public function get Diff();10 abstract public function getReason(); 11 11 } -
Core/trunk/src/PHPT/Reporter/Text.php
r651 r657 94 94 $this->_failures[$case->filename] = array( 95 95 'message' => $failure->getMessage(), 96 'diff' => $failure->get Diff(),96 'diff' => $failure->getReason(), 97 97 ); 98 98 $this->_output('F'); -
Core/trunk/src/PHPT/Section/EXPECTREGEX/InvalidRegexException.php
r397 r657 12 12 } 13 13 14 public function get Diff()14 public function getReason() 15 15 { 16 16 return ''; -
Core/trunk/src/PHPT/Section/ExpectationAbstract/UnexpectedOutputException.php
r609 r657 24 24 public function __toString() 25 25 { 26 return $this->get Diff();26 return $this->getReason(); 27 27 } 28 28 29 public function get Diff()29 public function getReason() 30 30 { 31 31 return (string)new PHPT_Util_Diff($this->_wanted, $this->_actual); … … 53 53 file_put_contents( 54 54 $this->_case->filename . '.diff', 55 $this->get Diff()55 $this->getReason() 56 56 ); 57 57 } -
Core/trunk/tests/Case/FailureException/declares-abstract-getDiff.phpt
r292 r657 1 1 --TEST-- 2 PHPT_Case_FailureException declares a get Diff() method as an abstract2 PHPT_Case_FailureException declares a getReason() method as an abstract 3 3 --FILE-- 4 4 <?php … … 7 7 8 8 $reflection = new ReflectionClass('PHPT_Case_FailureException'); 9 assert('$reflection->hasMethod("get Diff")');10 assert('$reflection->getMethod("get Diff")->isAbstract()');9 assert('$reflection->hasMethod("getReason")'); 10 assert('$reflection->getMethod("getReason")->isAbstract()'); 11 11 12 12 ?> -
Core/trunk/tests/CodeRunner/Driver/WScriptShell/_skipif.inc
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/basic-usage.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/can-handle-code-exit.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/casts-stdin-to-string.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/executes-in-own-process.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/extends-CodeRunner_Abstract.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/injects-ini-settings.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/passes-environment-variables.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/passes-in-args.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/passes-in-stdin.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/result-stores-exitcode.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/throws-exception-on-bad-executable.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/timeout.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/uses-path-to-locate-executables-if-relative.phpt
- Property svn:executable deleted
-
Core/trunk/tests/CodeRunner/Driver/WScriptShell/validate-throws-exception-on-bad-executable.phpt
- Property svn:executable deleted
-
Core/trunk/tests/Reporter/Null/outputs-nothing.phpt
r298 r657 15 15 { 16 16 public function __construct() { } 17 public function get Diff() { }17 public function getReason() { } 18 18 } 19 19 -
Core/trunk/tests/Reporter/_reporter-mocks.inc
r313 r657 12 12 parent::__construct(new PHPT_SimpleTestCase(), $msg); 13 13 } 14 public function get Diff() {14 public function getReason() { 15 15 return (string)new PHPT_Util_Diff('one', 'two'); 16 16 } -
Core/trunk/tests/Section/Expect/UnexpectedOutputException/getDiff-outputs-diff.phpt
r397 r657 1 1 --TEST-- 2 When a PHPT_Section_EXPECT_UnexpectedOutputException::get Diff() is called, the2 When a PHPT_Section_EXPECT_UnexpectedOutputException::getReason() is called, the 3 3 diff is returned 4 4 --FILE-- … … 10 10 $case->filename = dirname(__FILE__) . '/foobar.phpt'; 11 11 $exception = new PHPT_Section_EXPECT_UnexpectedOutputException($case, "one"); 12 echo $exception->get Diff(), "\n";12 echo $exception->getReason(), "\n"; 13 13 14 14 ?> -
Core/trunk/tests/Section/Expectf/UnexpectedOutputException/getDiff-outputs-diff.phpt
r397 r657 1 1 --TEST-- 2 When a PHPT_Section_EXPECTF_UnexpectedOutputException::get Diff() is called, the2 When a PHPT_Section_EXPECTF_UnexpectedOutputException::getReason() is called, the 3 3 diff is returned 4 4 --FILE-- … … 10 10 $case->filename = dirname(__FILE__) . '/foobar.phpt'; 11 11 $exception = new PHPT_Section_EXPECTF_UnexpectedOutputException($case, "one"); 12 echo $exception->get Diff(), "\n";12 echo $exception->getReason(), "\n"; 13 13 14 14 ?> -
Core/trunk/tests/Section/Expectregex/UnexpectedOutputException/getDiff-outputs-diff.phpt
r397 r657 1 1 --TEST-- 2 When a PHPT_Section_EXPECTREGEX_UnexpectedOutputException::get Diff() is called, the2 When a PHPT_Section_EXPECTREGEX_UnexpectedOutputException::getReason() is called, the 3 3 diff is returned 4 4 --FILE-- … … 10 10 $case->filename = dirname(__FILE__) . '/foobar.phpt'; 11 11 $exception = new PHPT_Section_EXPECTREGEX_UnexpectedOutputException($case, "one"); 12 echo $exception->get Diff(), "\n";12 echo $exception->getReason(), "\n"; 13 13 14 14 ?>
