public function PHPUnit_Framework_TestCase::expectOutputRegex

@since Method available since Release 3.6.0

Parameters

string $expectedRegex:

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

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php, line 413

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;
  }
}