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
Properties
$buffer
Buffer to capture stream content.
public
static string
$buffer
= ''
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