Documentation

CITestStreamFilter extends php_user_filter
in package

Class to extract an output snapshot.

Used to capture output during unit testing, so that it can be used in assertions.

Table of Contents

$buffer  : string
Buffer to capture stream content.
filter()  : int
Output filtering - catch it all.

Properties

Methods

filter()

Output filtering - catch it all.

public filter(resource $in, resource $out, int &$consumed, bool $closing) : int
Parameters
$in : resource
$out : resource
$consumed : int
$closing : bool
Return values
int

Search results