You are here

public function PHPUnit_Framework_TestCase::expectOutputRegex in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::expectOutputRegex()

@since Method available since Release 3.6.0

Parameters

string $expectedRegex:

Throws

PHPUnit_Framework_Exception

2 calls to PHPUnit_Framework_TestCase::expectOutputRegex()
OutputTestCase::testExpectOutputRegexFooActualBar in vendor/phpunit/phpunit/tests/_files/OutputTestCase.php
OutputTestCase::testExpectOutputRegexFooActualFoo in vendor/phpunit/phpunit/tests/_files/OutputTestCase.php

File

vendor/phpunit/phpunit/src/Framework/TestCase.php, line 390

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

public function expectOutputRegex($expectedRegex) {
  if ($this->outputExpectedString !== null) {
    throw new PHPUnit_Framework_Exception();
  }
  if (is_string($expectedRegex) || is_null($expectedRegex)) {
    $this->outputExpectedRegex = $expectedRegex;
  }
}