function PhptTestCase::render
3 calls to PhptTestCase::render()
- PhptTestCase::run in vendor/
phpunit/ phpunit/ src/ Runner/ PhptTestCase.php - Runs a test and collects its result in a TestResult instance.
- PhptTestCase::runClean in vendor/
phpunit/ phpunit/ src/ Runner/ PhptTestCase.php - PhptTestCase::shouldTestBeSkipped in vendor/
phpunit/ phpunit/ src/ Runner/ PhptTestCase.php
File
-
vendor/
phpunit/ phpunit/ src/ Runner/ PhptTestCase.php, line 572
Class
- PhptTestCase
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\RunnerCode
private function render(string $code) : string {
return str_replace([
'__DIR__',
'__FILE__',
], [
"'" . dirname($this->filename) . "'",
"'" . $this->filename . "'",
], $code);
}