Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns canonicalized absolute pathname
<?php realpath(string $path): string|false
<?php         }




        $exitCode = $application->runTest(realpath(trim($testPath)));



        fwrite($statusFile, (string) $exitCode);

        fflush($statusFile);
<?php             $filename = (string) preg_replace_callback('~^(?P<drive>[a-z]+:\\\)~i', static fn (array $match): string => strtolower($match['drive']), $filename);

        }



        $filename = str_replace('\\\\', '\\', addslashes((string) realpath($filename)));

        $rootPath = TestSuite::getInstance()->rootPath;

        $relativePath = str_replace($rootPath.DIRECTORY_SEPARATOR, '', $filename);
<?php         $this->targets = array_reduce($targets, function (array $accumulator, string $target): array {

            if (($matches = glob($target)) !== false) {

                foreach ($matches as $file) {

                    $accumulator[] = (string) realpath($file);

                }

            }
<?php             if (! $xmlConfiguration->phpunit()->hasCacheDirectory()) {

                $arguments = $this->pushArgument('--cache-directory', $arguments);

                $arguments = $this->pushArgument((string) realpath(self::TEMPORARY_FOLDER), $arguments);

            }

        }
<?php         $this->printer = new ResultPrinter($output, $options);

        $this->timer = new Timer();



        $wrapper = realpath(

            dirname(__DIR__, 4).DIRECTORY_SEPARATOR.'bin'.DIRECTORY_SEPARATOR.'worker.php',

        );

        assert($wrapper !== false);

        $phpFinder = new PhpExecutableFinder();

        $phpBin = $phpFinder->find(false);
<?php         $this->tests = new TestRepository();

        $this->afterEach = new AfterEachRepository();

        $this->afterAll = new AfterAllRepository();

        $this->rootPath = (string) realpath($rootPath);

        $this->snapshots = new SnapshotRepository(

            implode(DIRECTORY_SEPARATOR, [$this->rootPath, $this->testPath]),

            implode(DIRECTORY_SEPARATOR, ['.pest', 'snapshots']),