PHPUnit_Extensions_OutputTestCase::expectOutputRegex PHP Method

expectOutputRegex() public method

public expectOutputRegex ( string $expectedRegex )
$expectedRegex string
    public function expectOutputRegex($expectedRegex)
    {
        if ($this->expectedString !== NULL) {
            throw new PHPUnit_Framework_Exception();
        }
        if (is_string($expectedRegex) || is_null($expectedRegex)) {
            $this->expectedRegex = $expectedRegex;
        }
    }