Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PhptTestCase.php

function PhptTestCase::getCleanDiffLine

1 call to PhptTestCase::getCleanDiffLine()
PhptTestCase::getLocationHintFromDiff in vendor/phpunit/phpunit/src/Runner/PhptTestCase.php

File

vendor/phpunit/phpunit/src/Runner/PhptTestCase.php, line 734

Class

PhptTestCase
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Runner

Code

private function getCleanDiffLine(string $line) : string {
    if (preg_match('/^[\\-+]([\'\\"]?)(.*)\\1$/', $line, $matches)) {
        $line = $matches[2];
    }
    return $line;
}
RSS feed
Powered by Drupal