Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Makes directory
<?php mkdir(    string $directory,    int $permissions = 0777,    bool $recursive = false,    ?resource $context = null): bool
<?php         $testsBaseDir = "{$this->testSuite->rootPath}/tests";



        if (! is_dir($testsBaseDir)) {

            mkdir($testsBaseDir);

        }



        View::render('components.badge', [
<?php             }



            if (! is_dir(dirname($toPath))) {

                mkdir(dirname($toPath));

            }



            copy($fromPath, $toPath);
<?php         $snapshotFilename = $this->getSnapshotFilename();



        if (! file_exists(dirname($snapshotFilename))) {

            mkdir(dirname($snapshotFilename), 0755, true);

        }



        file_put_contents($snapshotFilename, $snapshot);