\PHPUnit_Util_TestDox_ResultPrinter
Base class for printers of TestDox documentation.
- Author: Sebastian Bergmann <sebastian@phpunit.de>
- Copyright: 2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
- License: http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
Synopsis
- // members
- protected PHPUnit_Util_TestDox_NamePrettifier $prettifier;
- protected string $testClass;
- protected integer $testStatus;
- protected array $tests;
- protected integer $successful;
- protected integer $failed;
- protected integer $risky;
- protected integer $skipped;
- protected integer $incomplete;
- protected string $testTypeOfInterest;
- protected string $currentTestClassPrettified;
- protected string $currentTestMethodPrettified;
- // Inherited members from PHPUnit_Util_Printer
- protected boolean $autoFlush;
- protected resource $out;
- protected string $outTarget;
- protected boolean $printsHTML;
- // methods
- public void __construct()
- public void flush()
- public void addError()
- public void addFailure()
- public void addIncompleteTest()
- public void addRiskyTest()
- public void addSkippedTest()
- public void startTestSuite()
- public void endTestSuite()
- public void startTest()
- public void endTest()
- protected void doEndClass()
- protected void startRun()
- protected void startClass()
- protected void onTest()
- protected void endClass()
- protected void endRun()
- // Inherited methods from PHPUnit_Util_Printer
- public void __construct()
- public void flush()
- public void incrementalFlush()
- public void write()
- public boolean getAutoFlush()
- public void setAutoFlush()
Hierarchy
Extends
Extended by
Implements
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
338 | UnusedFormalParameter | Avoid unused parameters such as '$name'. |
348 | UnusedFormalParameter | Avoid unused parameters such as '$name'. |
348 | UnusedFormalParameter | Avoid unused parameters such as '$success'. |
357 | UnusedFormalParameter | Avoid unused parameters such as '$name'. |
Members
protected
- $autoFlush
—
boolean
If true, flush output after every write. - $currentTestClassPrettified — string
- $currentTestMethodPrettified — string
- $failed — integer
- $incomplete — integer
- $out — resource
- $outTarget — string
- $prettifier — PHPUnit_Util_TestDox_NamePrettifier
- $printsHTML — boolean
- $risky — integer
- $skipped — integer
- $successful — integer
- $testClass — string
- $testStatus — integer
- $testTypeOfInterest — string
- $tests — array
Methods
protected
- doEndClass()
- endClass() — Handler for 'end class' event.
- endRun() — Handler for 'end run' event.
- onTest() — Handler for 'on test' event.
- startClass() — Handler for 'start class' event.
- startRun() — Handler for 'start run' event.
public
- __construct() — Constructor.
- addError() — An error occurred.
- addFailure() — A failure occurred.
- addIncompleteTest() — Incomplete test.
- addRiskyTest() — Risky test.
- addSkippedTest() — Skipped test.
- endTest() — A test ended.
- endTestSuite() — A testsuite ended.
- flush() — Flush buffer and close output.
- startTest() — A test started.
- startTestSuite() — A testsuite started.
Inherited from PHPUnit_Util_Printer
public
- flush() — Flush buffer, optionally tidy up HTML, and close output if it's not to a php stream
- getAutoFlush() — Check auto-flush mode.
- incrementalFlush() — Performs a safe, incremental flush.
- setAutoFlush() — Set auto-flushing mode.
- write()
History
-
2014-02-14T18:31:32+01:00 (commit #e5b50bc)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Next version will be 4.0
-
2014-01-22T19:43:07+01:00 (commit #02b42d7)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Initial work on formatting code according to PSR-2
-
2014-01-20T17:21:13+01:00 (commit #3a5808f)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Cleanup
-
2014-01-09T08:11:47+01:00 (commit #205e008)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year
-
2014-01-07T14:37:15+01:00 (commit #991bf00)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Revert "Next stable release will be PHPUnit 4" This reverts commit f4ee7815d1bb1664786fe95b226a3def20f24aa9.
-
2014-01-06T09:05:08+01:00 (commit #f4ee781)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Next stable release will be PHPUnit 4
-
2014-01-03T10:56:51+01:00 (commit #5fa6726)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Introduce new test classification: risky test
-
2013-01-07T11:37:52+01:00 (commit #c517984)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year
-
2012-09-24T06:47:44+02:00 (commit #81ab540)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Do not perform string replacement for @package_version@ anymore.
-
2012-05-27T14:12:42+02:00 (commit #76a561e)
Author: Volker Dusch (github@wallbash.com) / Commiter: Volker Dusch (github@wallbash.com)
Revert "Merge pull request #572 from mgb/excluded_tests_testlistener" This reverts commit 3b5d59a5d341f9b851ea373a31beb1cdc4b10ccb, reversing changes made to 063359e67e2031ba2ab9afdeb1bd6855c90987e4.
-
2012-05-20T19:52:08+02:00 (commit #67876c2)
Author: Ryan Murphy (git@minegoboom.com) / Commiter: Mine GO BOOM (git@minegoboom.com)
Quick hack to make ResultPrinter.php include excluded tests in its output. I choose to use an underscore as the output as we would want to have the total percentage complete to end up with 100%. If instead we would call writeProgress(NULL) and not have it output anything nor increment $this->column, it would cause the total summary to continue to increment. That does have the side effect where if you hit a chunk of excluded tests, your counter may go from 122/1300 to 553/1300 on the following line with no real indication of why. Another option I thought of was to instead cause the total number of tests counter to decrement, but that also looks weird if you go from 120/1500 (8%) to 160/800 (20%). But in the case when you exclude large chunks, it would prevent lots of useless output.
-
2012-04-30T12:02:38+02:00 (commit #5786e50)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
List The BSD 3-Clause License correctly and consistently. Thanks to Christian Aistleitner <christian@quelltextlich.at> for bringing this issue to my attention.
-
2012-01-01T11:21:16+01:00 (commit #aae6c38)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2010-12-31T11:45:34+01:00 (commit #bee3344)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2010-07-07T12:42:23+02:00 (commit #f0d9cdd)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Change email address.
-
2010-06-15T11:16:30+02:00 (commit #07ada50)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix WS.
-
2010-06-15T11:15:43+02:00 (commit #172498a)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix docblocks.
-
2010-06-12T20:25:54+02:00 (commit #d19a737)
Author: Mark Story (mark@mark-story.com) / Commiter: Mark Story (mark@mark-story.com)
Removing trailing whitespace from files. Refs #1063
-
2010-05-18T16:13:08+02:00 (commit #0f2b39e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove superfluous @abstract annotation.
-
2010-04-05T17:41:26+02:00 (commit #471d69e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Add @subpackage annotation.
-
2010-02-02T14:14:29+01:00 (commit #bc1aaaa)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove closing PHP tags.
-
2010-01-19T09:39:03+01:00 (commit #fb48a69)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Initial work on autoloading.
-
2009-12-31T09:26:09+01:00 (commit #37f75ff)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2009-12-31T09:25:53+01:00 (commit #bddcc5f)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2009-12-31T09:23:37+01:00 (commit #7a7d0b7)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2009-12-25T10:32:26+01:00 (commit #60e7125)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove Subversion keywords.
-
2009-12-25T10:30:57+01:00 (commit #42294ad)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove Subversion keywords.
-
2009-12-25T10:26:35+01:00 (commit #8617133)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove Subversion keywords.
-
2009-11-23T09:39:24+01:00 (commit #1503412)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [5389].
-
2009-11-23T09:29:23+01:00 (commit #4c9cf4e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Initial work on PHP_CodeCoverage migration.
-
2009-09-24T16:22:53+02:00 (commit #1f748fd)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [5250].
-
2009-09-24T16:20:48+02:00 (commit #4e4fe1f)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix #879.
-
2009-09-24T15:22:06+02:00 (commit #42e9cf1)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [5248].
-
2009-09-24T15:19:37+02:00 (commit #6eb4e02)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix #877.
-
2009-07-25T17:23:18+02:00 (commit #11c8c8d)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [5019] and [5021].
-
2009-07-25T17:20:05+02:00 (commit #205ffa2)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix #824.
-
2009-02-21T07:25:47+01:00 (commit #6f5cbf6)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [4657].
-
2009-02-21T07:24:19+01:00 (commit #768b7c3)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Implement @testdox annotation.
-
2008-12-31T10:26:51+01:00 (commit #a899cb2)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [4402].
-
2008-12-31T10:25:57+01:00 (commit #4b26cea)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2008-06-08T14:22:29+02:00 (commit #191a5d5)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [3160].
-
2008-06-08T14:03:37+02:00 (commit #9d9b5e3)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Drop superfluous annotations.
-
2008-06-07T19:27:40+02:00 (commit #ad87e59)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [3135].
-
2008-06-07T19:26:44+02:00 (commit #12b76b7)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Include failed tests in TestDox output.
-
2008-05-31T17:09:04+02:00 (commit #64240fe)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [3068].
-
2008-05-31T17:09:01+02:00 (commit #0c638d3)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Lazy load optional dependencies.
-
2008-01-17T11:53:25+01:00 (commit #2527e3e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [2143].
-
2008-01-17T11:53:06+01:00 (commit #1d21239)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Refactor in preparation for Story framework.
-
2007-12-26T19:11:55+01:00 (commit #1bba1cc)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2007-12-26T19:11:04+01:00 (commit #58121cf)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2007-10-29T10:04:42+01:00 (commit #0b4f692)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Only attempt to prettify PHPUnit_Framework_TestCase objects.
-
2007-09-29T12:56:13+02:00 (commit #8feea89)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Merge [1361].
-
2007-02-24T07:58:18+01:00 (commit #203ee10)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fugbix typo.
-
2007-02-24T07:58:18+01:00 (commit #ae2a7c2)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fugbix typo.
-
2006-12-24T18:50:40+01:00 (commit #0189be1)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump year.
-
2006-11-06T13:48:58+01:00 (commit #62ffb2d)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
More work on time.
-
2006-11-06T13:14:17+01:00 (commit #24d5d8d)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Unify timing code.
-
2006-09-11T09:20:41+02:00 (commit #75e12fb)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
No longer needed.
-
2006-08-13T10:57:58+02:00 (commit #3cd6a25)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Whitespace fixes.
-
2006-07-06T11:50:42+02:00 (commit #dacd2f1)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Leftover: PHPUnit2 -> PHPUnit.
-
2006-06-30T10:38:41+02:00 (commit #210b621)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Make it easier to use a checkout of the trunk.
-
2006-06-29T20:56:08+02:00 (commit #6b0d2d5)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Post-PEAR cleanup, phase one: PHPUnit2_* -> PHPUnit_*, pear.php.net -> phpunit.de, etc.
-
2006-06-29T16:58:01+02:00 (commit #8b8c705)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Recreate trunk.