PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: PHPUnit2_Util_Printer

Source Location: /PHPUnit2-3.0.0alpha11/Util/Printer.php

Class Overview


Utility class that can print to STDOUT or write to a file.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Child classes:

PHPUnit2_TextUI_ResultPrinter
Prints the result of a TextUI TestRunner run.
PHPUnit2_Util_TestDox_ResultPrinter
Base class for printers of TestDox documentation.
PHPUnit2_Util_Log_XML
A TestListener that generates an XML-based logfile of the test execution.
PHPUnit2_Util_Log_Eclipse
A TestListener that passes a log of the test execution as a JSON string to Eclipse via a socket connection.
PHPUnit2_Util_Log_TAP
A TestListener that generates a logfile of the test execution using the Test Anything Protocol (TAP).

Inherited Variables

Inherited Methods


Class Details

[line 66]
Utility class that can print to STDOUT or write to a file.


[ Top ]


Method Detail

__construct (Constructor)   [line 80]

PHPUnit2_Util_Printer __construct( [mixed $out = NULL])

Constructor.
  • Access: public

Overridden in child classes as:

PHPUnit2_Util_TestDox_ResultPrinter::__construct()
Constructor.
PHPUnit2_Util_Log_XML::__construct()
Constructor.
PHPUnit2_Util_Log_Eclipse::__construct()
Constructor.

Parameters:

mixed   $out   — 

[ Top ]

flush   [line 96]

void flush( )

Flush buffer and close output.
  • Access: public

Overridden in child classes as:

PHPUnit2_Util_TestDox_ResultPrinter::flush()
Flush buffer and close output.
PHPUnit2_Util_Log_XML::flush()
Flush buffer and close output.
PHPUnit2_Util_Log_TAP::flush()
Flush buffer and close output.

[ Top ]

write   [line 107]

void write( string $buffer)

  • Access: public

Overridden in child classes as:

PHPUnit2_Util_Log_Eclipse::write()

Parameters:

string   $buffer   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.