function TeamCityLogger::escape
1 call to TeamCityLogger::escape()
- TeamCityLogger::writeMessage in vendor/
phpunit/ phpunit/ src/ Logging/ TeamCity/ TeamCityLogger.php
File
-
vendor/
phpunit/ phpunit/ src/ Logging/ TeamCity/ TeamCityLogger.php, line 333
Class
- TeamCityLogger
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Logging\TeamCityCode
private function escape(string $string) : string {
return str_replace([
'|',
"'",
"\n",
"\r",
']',
'[',
], [
'||',
"|'",
'|n',
'|r',
'|]',
'|[',
], $string);
}