PHP Class ResultPrinter, PayPal-PHP-SDK

Inheritance: extends PHPUnit_Util_Printer, implements PHPUnit_Framework_TestListener, use trait Bartlett\LoggerTestListenerTrait, use trait Psr\Log\LoggerAwareTrait, use trait GetOpt
Mostra file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
printError ( $title, $objectName, null $objectId = null, null $request = null, Exception $exception = null ) Prints Error
printOutput ( string $title, string $objectName, string $objectId = null, mixed $request = null, mixed $response = null, string $errorMessage = null ) Prints HTML Output to web page.
printResult ( string $title, string $objectName, string $objectId = null, mixed $request = null, mixed $response = null ) Prints success response HTML Output to web page.

Protected Methods

Method Description
printConsoleObject ( $object, $error = null )
printObject ( $object, $error = null )

Method Details

printConsoleObject() protected static method

protected static printConsoleObject ( $object, $error = null )

printError() public static method

Prints Error
public static printError ( $title, $objectName, null $objectId = null, null $request = null, Exception $exception = null )
$title
$objectName
$objectId null
$request null
$exception Exception

printObject() protected static method

protected static printObject ( $object, $error = null )

printOutput() public static method

Prints HTML Output to web page.
public static printOutput ( string $title, string $objectName, string $objectId = null, mixed $request = null, mixed $response = null, string $errorMessage = null )
$title string
$objectName string
$objectId string
$request mixed
$response mixed
$errorMessage string

printResult() public static method

Prints success response HTML Output to web page.
public static printResult ( string $title, string $objectName, string $objectId = null, mixed $request = null, mixed $response = null )
$title string
$objectName string
$objectId string
$request mixed
$response mixed