public function PHPUnit_Framework_Constraint_StringMatches::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Code
public function __construct($string) {
parent::__construct($string);
$this->pattern = $this
->createPatternFromFormat(preg_replace('/\\r\\n/', "\n", $string));
$this->string = $string;
}