Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Deletes a file
<?php unlink(string $filename, ?resource $context = null): bool
<?php         $lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock';



        if (file_exists($lockFile)) {

            unlink($lockFile);

        }

    }
<?php                 continue;

            }



            unlink($file->getPathname());

        }

    }
<?php                     if (is_dir($path.'/'.$file)) {

                        $deleteDirectory($path.'/'.$file);

                    } else {

                        unlink($path.'/'.$file);

                    }

                }
<?php         $codeCoverage = require $reportPath;

        unlink($reportPath);



        $totalCoverage = $codeCoverage->getReport()->percentageOfExecutedLines();
<?php $file = __DIR__.DIRECTORY_SEPARATOR.'after-all-test';



beforeAll(function () use ($file) {

    @unlink($file);

});



afterAll(function () use ($file) {
<?php });



afterAll(function () use ($file) {

    @unlink($file);

});



test('deletes file after all', function () use ($file) {
<?php });



afterEach(function () {

    unlink($this->tempFile);

});



test('pass', function () {
<?php });



afterEach(function () {

    unlink($this->tempFile);

});



test('pass', function () {
<?php });



afterEach(function () {

    unlink($this->tempFile);

});



test('pass', function () {
<?php     $process->run();



    $rawXmlContent = file_get_contents($junitLogFile);

    unlink($junitLogFile);




    try {