src/Expectation/Matcher/PrintMatcher.php
public function match($callable)
    {
        ob_start();
        $callable();

        $this->actual = ob_get_contents();
        ob_end_clean();

        return ($this->actual == $this->expected);
    }
public function match($callable)
    {
        ob_start();
        $callable();

        $this->actual = ob_get_contents();
        ob_end_clean();

        return ($this->actual == $this->expected);
    }
public function match ( $ callable ) { ob_start ( ) ; $ callable ( ) ; $ this -> actual = ob_get_contents ( ) ; ob_end_clean ( ) ; return ( $ this -> actual == $ this -> expected ) ; }
Compares the output printed by the callable to the expected output.
Returns true if the two strings are equal, false otherwise.

@param  callable $callable The function to invoke
@return boolean  Whether or not the printed and expected output are equal
Compares the output printed by the callable to the expected output . Returns true if the two strings are equal false otherwise .