You are here

public function PHPUnit_Framework_Constraint_StringMatches::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Framework/Constraint/StringMatches.php \PHPUnit_Framework_Constraint_StringMatches::__construct()

Parameters

string $string:

Overrides PHPUnit_Framework_Constraint_PCREMatch::__construct

File

vendor/phpunit/phpunit/src/Framework/Constraint/StringMatches.php, line 28

Class

PHPUnit_Framework_Constraint_StringMatches
...

Code

public function __construct($string) {
  parent::__construct($string);
  $this->pattern = $this
    ->createPatternFromFormat(preg_replace('/\\r\\n/', "\n", $string));
  $this->string = $string;
}