PHP 8.2.31
Preview: LoadedFromFileConfiguration.php Size: 1.95 KB
//opt/cpanel/ea-wappspector/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/LoadedFromFileConfiguration.php

<?php declare(strict_types=1);
/*
 * This file is part of PHPUnit.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace PHPUnit\TextUI\XmlConfiguration;

use PHPUnit\TextUI\Configuration\ExtensionBootstrapCollection;
use PHPUnit\TextUI\Configuration\Php;
use PHPUnit\TextUI\Configuration\Source;
use PHPUnit\TextUI\Configuration\TestSuiteCollection;
use PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage;
use PHPUnit\TextUI\XmlConfiguration\Logging\Logging;

/**
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
 *
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
 *
 * @psalm-immutable
 */
final class LoadedFromFileConfiguration extends Configuration
{
    private readonly string $filename;
    private readonly ValidationResult $validationResult;

    public function __construct(string $filename, ValidationResult $validationResult, ExtensionBootstrapCollection $extensions, Source $source, CodeCoverage $codeCoverage, Groups $groups, Logging $logging, Php $php, PHPUnit $phpunit, TestSuiteCollection $testSuite)
    {
        $this->filename         = $filename;
        $this->validationResult = $validationResult;

        parent::__construct(
            $extensions,
            $source,
            $codeCoverage,
            $groups,
            $logging,
            $php,
            $phpunit,
            $testSuite,
        );
    }

    public function filename(): string
    {
        return $this->filename;
    }

    public function hasValidationErrors(): bool
    {
        return $this->validationResult->hasValidationErrors();
    }

    public function validationErrors(): string
    {
        return $this->validationResult->asString();
    }

    public function wasLoadedFromFile(): bool
    {
        return true;
    }
}

Directory Contents

Dirs: 5 × Files: 10

Name Size Perms Modified Actions
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
Logging DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
Migration DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
Validator DIR
- drwxr-xr-x 2026-01-27 05:48:37
Edit Download
2.71 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
4.86 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
606 B lrw-r--r-- 2026-01-27 05:48:37
Edit Download
2.20 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
1.20 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
1.95 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
37.86 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
17.68 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
1.93 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download
4.07 KB lrw-r--r-- 2026-01-27 05:48:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).