prefix stringlengths 512 512 | suffix stringlengths 256 256 | middle stringlengths 14 229 | meta dict |
|---|---|---|---|
* (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 function assert;
use DOMDocument;
/**
* @no-named-arguments Parameter names are not cov... | ate(DOMDocument $document): void
{
$coverage = $document->createElement('coverage');
$documentElement = $document->documentElement;
assert($documentElement !== null);
$documentElement->insertBefore(
| ment implements Migration
{
public function migr | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/IntroduceCoverageElement.php",
"language": "php",
"file_size": 962,
"cut_index": 582,
"middle_length": 52
} |
s=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 function assert;
use DOMDocument;
use DOMEle... | $document): void
{
$source = $document->getElementsByTagName('source')->item(0);
if ($source !== null) {
return;
}
$coverage = $document->getElementsByTagName('coverage')->item(0);
if ($coverage = | t covered by the backward compatibility promise for PHPUnit
*/
final readonly class MoveCoverageDirectoriesToSource implements Migration
{
/**
* @throws MigrationException
*/
public function migrate(DOMDocument | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/MoveCoverageDirectoriesToSource.php",
"language": "php",
"file_size": 1840,
"cut_index": 537,
"middle_length": 229
} |
s=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 DOMDocument;
use DOMElement;
/**
* @no-nam... | tsByTagName('whitelist')->item(0);
if ($whitelist === null) {
return;
}
$coverage = $document->getElementsByTagName('coverage')->item(0);
if (!$coverage instanceof DOMElement) {
throw new Migration | inal readonly class MoveWhitelistIncludesToCoverage implements Migration
{
/**
* @throws MigrationException
*/
public function migrate(DOMDocument $document): void
{
$whitelist = $document->getElemen | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/MoveWhitelistIncludesToCoverage.php",
"language": "php",
"file_size": 1548,
"cut_index": 537,
"middle_length": 229
} |
hp 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 function assert;
use D... | Element $logNode): DOMElement
{
$ownerDocument = $logNode->ownerDocument;
assert($ownerDocument !== null);
$crap4j = $ownerDocument->createElement('crap4j');
$crap4j->setAttribute('outputFile', $logNode->getAttribute(' | promise for PHPUnit
*/
final readonly class CoverageCrap4jToReport extends LogToReportMigration
{
protected function forType(): string
{
return 'coverage-crap4j';
}
protected function toReportFormat(DOM | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCrap4jToReport.php",
"language": "php",
"file_size": 1113,
"cut_index": 515,
"middle_length": 229
} |
s=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 DOMDocument;
use DOMElement;
/**
* @no-nam... | t->getElementsByTagName('whitelist')->item(0);
if ($whitelist === null) {
return;
}
$coverage = $document->getElementsByTagName('coverage')->item(0);
if (!$coverage instanceof DOMElement) {
throw n | inal readonly class MoveAttributesFromFilterWhitelistToCoverage implements Migration
{
/**
* @throws MigrationException
*/
public function migrate(DOMDocument $document): void
{
$whitelist = $documen | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/MoveAttributesFromFilterWhitelistToCoverage.php",
"language": "php",
"file_size": 1554,
"cut_index": 537,
"middle_length": 229
} |
?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 function assert;
use... | OMElement $logNode): DOMElement
{
$ownerDocument = $logNode->ownerDocument;
assert($ownerDocument !== null);
$clover = $ownerDocument->createElement('clover');
$clover->setAttribute('outputFile', $logNode->getAttribut | ty promise for PHPUnit
*/
final readonly class CoverageCloverToReport extends LogToReportMigration
{
protected function forType(): string
{
return 'coverage-clover';
}
protected function toReportFormat(D | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/CoverageCloverToReport.php",
"language": "php",
"file_size": 1045,
"cut_index": 513,
"middle_length": 229
} |
?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 function assert;
use... | ent $logNode): DOMElement
{
$ownerDocument = $logNode->ownerDocument;
assert($ownerDocument !== null);
$xml = $ownerDocument->createElement('xml');
$xml->setAttribute('outputDirectory', $logNode->getAttribute('target') | ty promise for PHPUnit
*/
final readonly class CoverageXmlToReport extends LogToReportMigration
{
protected function forType(): string
{
return 'coverage-xml';
}
protected function toReportFormat(DOMElem | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/CoverageXmlToReport.php",
"language": "php",
"file_size": 1031,
"cut_index": 513,
"middle_length": 229
} |
s=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\Configuration;
/**
* @no-named-arguments Parameter names are not ... | */
public function __construct(string $path, string $prefix, string $suffix, bool $includeInCodeCoverage = true)
{
$this->path = $path;
$this->prefix = $prefix;
$this->suffix = | private string $prefix;
/**
* @var non-empty-string
*/
private string $suffix;
private bool $includeInCodeCoverage;
/**
* @param non-empty-string $path
* @param non-empty-string $suffix
| {
"filepath": "src/TextUI/Configuration/Value/FilterDirectory.php",
"language": "php",
"file_size": 1543,
"cut_index": 537,
"middle_length": 229
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | ct(TestFileCollection $files)
{
$this->files = $files->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($this->files[$this->position]);
| ileCollectionIterator implements Iterator
{
/**
* @var list<TestFile>
*/
private readonly array $files;
/**
* @var non-negative-int
*/
private int $position = 0;
public function __constru | {
"filepath": "src/TextUI/Configuration/Value/TestFileCollectionIterator.php",
"language": "php",
"file_size": 1367,
"cut_index": 524,
"middle_length": 229
} |
e(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 function assert;
use DOMDocumen... | void
{
$source = $document->getElementsByTagName('source')->item(0);
if ($source === null) {
return;
}
assert($source instanceof DOMElement);
if (!$source->hasAttribute('restrictDeprecations')) {
| tibility promise for PHPUnit
*/
final readonly class ReplaceRestrictDeprecationsWithIgnoreDeprecations implements Migration
{
/**
* @throws MigrationException
*/
public function migrate(DOMDocument $document): | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/ReplaceRestrictDeprecationsWithIgnoreDeprecations.php",
"language": "php",
"file_size": 1402,
"cut_index": 524,
"middle_length": 229
} |
* 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 function assert;
use DOMDocument;
use DOMElement;
/**... | Attribute implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
assert($root instanceof DOMElement);
if ($root->hasAttribute('cacheResultFile')) {
$ro | PUnit
*/
final readonly class RemoveCacheResultFile | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheResultFileAttribute.php",
"language": "php",
"file_size": 913,
"cut_index": 547,
"middle_length": 52
} |
e(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 function assert;
use DOMDocumen... | assert($root instanceof DOMElement);
if ($root->hasAttribute('convertDeprecationsToExceptions')) {
$root->removeAttribute('convertDeprecationsToExceptions');
}
if ($root->hasAttribute('convertErrorsToExceptions')) { | tibility promise for PHPUnit
*/
final readonly class RemoveConversionToExceptionsAttributes implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
| {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveConversionToExceptionsAttributes.php",
"language": "php",
"file_size": 1379,
"cut_index": 524,
"middle_length": 229
} |
<?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 DOMDocument;
use DO... | e('coverage')->item(0);
if (!$node instanceof DOMElement || $node->parentNode === null) {
return;
}
if ($node->hasAttribute('processUncoveredFiles')) {
$node->removeAttribute('processUncoveredFiles');
| promise for PHPUnit
*/
final readonly class RemoveCoverageElementProcessUncoveredFilesAttribute implements Migration
{
public function migrate(DOMDocument $document): void
{
$node = $document->getElementsByTagNam | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementProcessUncoveredFilesAttribute.php",
"language": "php",
"file_size": 1010,
"cut_index": 512,
"middle_length": 229
} |
* 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 DOMDocument;
use DOMElement;
/**
* @no-named-argumen... | public function migrate(DOMDocument $document): void
{
$node = $document->getElementsByTagName('listeners')->item(0);
if (!$node instanceof DOMElement || $node->parentNode === null) {
return;
}
$node->pare | nly class RemoveListeners implements Migration
{
| {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveListeners.php",
"language": "php",
"file_size": 891,
"cut_index": 547,
"middle_length": 52
} |
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 function assert;
use DOMD... | 0);
if (!$logging instanceof DOMElement) {
return;
}
foreach (SnapshotNodeList::fromNodeList($logging->getElementsByTagName('log')) as $logNode) {
assert($logNode instanceof DOMElement);
switch | compatibility promise for PHPUnit
*/
final readonly class RemoveLogTypes implements Migration
{
public function migrate(DOMDocument $document): void
{
$logging = $document->getElementsByTagName('logging')->item( | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLogTypes.php",
"language": "php",
"file_size": 1181,
"cut_index": 518,
"middle_length": 229
} |
<?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 function assert;
us... | assert($root instanceof DOMElement);
if ($root->hasAttribute('printerClass')) {
$root->removeAttribute('printerClass');
}
if ($root->hasAttribute('printerFile')) {
$root->removeAttribute('printerFile');
| ckward compatibility promise for PHPUnit
*/
final readonly class RemovePrinterAttributes implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
| {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemovePrinterAttributes.php",
"language": "php",
"file_size": 1012,
"cut_index": 512,
"middle_length": 229
} |
<?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 function assert;
us... | = $document->documentElement;
assert($root instanceof DOMElement);
if ($root->hasAttribute('registerMockObjectsFromTestArgumentsRecursively')) {
$root->removeAttribute('registerMockObjectsFromTestArgumentsRecursively');
| ckward compatibility promise for PHPUnit
*/
final readonly class RemoveRegisterMockObjectsFromTestArgumentsRecursivelyAttribute implements Migration
{
public function migrate(DOMDocument $document): void
{
$root | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveRegisterMockObjectsFromTestArgumentsRecursivelyAttribute.php",
"language": "php",
"file_size": 1009,
"cut_index": 512,
"middle_length": 229
} |
* 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 function assert;
use DOMDocument;
use DOMElement;
/**... | e implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
assert($root instanceof DOMElement);
if ($root->hasAttribute('verbose')) {
$root->removeAttrib | PUnit
*/
final readonly class RemoveVerboseAttribut | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveVerboseAttribute.php",
"language": "php",
"file_size": 889,
"cut_index": 547,
"middle_length": 52
} |
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 function assert;
use DOMD... | assert($root instanceof DOMElement);
if ($root->hasAttribute('backupStaticProperties')) {
return;
}
if (!$root->hasAttribute('backupStaticAttributes')) {
return;
}
$root->setAttribu | compatibility promise for PHPUnit
*/
final readonly class RenameBackupStaticAttributesAttribute implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
| {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RenameBackupStaticAttributesAttribute.php",
"language": "php",
"file_size": 1146,
"cut_index": 518,
"middle_length": 229
} |
e(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 function assert;
use function e... | $root = $document->documentElement;
assert($root instanceof DOMElement);
if (!$root->hasAttribute('executionOrder')) {
return;
}
$parts = explode(',', $root->getAttribute('executionOrder'));
$c | s class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class RenameExecutionOrderOptionsDurationAndSize implements Migration
{
public function migrate(DOMDocument $document): void
{
| {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RenameExecutionOrderOptionsDurationAndSize.php",
"language": "php",
"file_size": 1477,
"cut_index": 524,
"middle_length": 229
} |
* (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 function assert;
use DOMDocument;
use DOMElement;
/**
* @no-named-arguments Parameter n... | s Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
assert($root instanceof DOMElement);
if ($root->hasAttribute('beStrictAboutTodoAnnotatedTests')) {
$root- | veBeStrictAboutTodoAnnotatedTestsAttribute implement | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveBeStrictAboutTodoAnnotatedTestsAttribute.php",
"language": "php",
"file_size": 961,
"cut_index": 582,
"middle_length": 52
} |
* 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 function assert;
use DOMDocument;
use DOMElement;
/**... | ibute implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
assert($root instanceof DOMElement);
if ($root->hasAttribute('cacheTokens')) {
$root->remo | PUnit
*/
final readonly class RemoveCacheTokensAttr | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCacheTokensAttribute.php",
"language": "php",
"file_size": 901,
"cut_index": 547,
"middle_length": 52
} |
s=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 function assert;
use function sprintf;
use D... | telist = $document->getElementsByTagName('whitelist')->item(0);
if ($whitelist instanceof DOMElement) {
$this->ensureEmpty($whitelist);
$whitelistParent = $whitelist->parentNode;
assert($whitelistParent !== nu | ard compatibility promise for PHPUnit
*/
final readonly class RemoveEmptyFilter implements Migration
{
/**
* @throws MigrationException
*/
public function migrate(DOMDocument $document): void
{
$whi | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveEmptyFilter.php",
"language": "php",
"file_size": 1889,
"cut_index": 537,
"middle_length": 229
} |
* 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 function assert;
use DOMDocument;
use DOMElement;
/**... | tribute implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
assert($root instanceof DOMElement);
if ($root->hasAttribute('noInteraction')) {
$root-> | PUnit
*/
final readonly class RemoveNoInteractionAt | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveNoInteractionAttribute.php",
"language": "php",
"file_size": 907,
"cut_index": 547,
"middle_length": 52
} |
?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 function assert;
use... | assert($root instanceof DOMElement);
if ($root->hasAttribute('testSuiteLoaderClass')) {
$root->removeAttribute('testSuiteLoaderClass');
}
if ($root->hasAttribute('testSuiteLoaderFile')) {
$root->remo | kward compatibility promise for PHPUnit
*/
final readonly class RemoveTestSuiteLoaderAttributes implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
| {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestSuiteLoaderAttributes.php",
"language": "php",
"file_size": 1052,
"cut_index": 513,
"middle_length": 229
} |
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 function assert;
use DOMD... | ment;
assert($root instanceof DOMElement);
if ($root->hasAttribute('beStrictAboutCoverageMetadata')) {
return;
}
if (!$root->hasAttribute('beStrictAboutCoversAnnotation')) {
return;
}
| compatibility promise for PHPUnit
*/
final readonly class RenameBeStrictAboutCoversAnnotationAttribute implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentEle | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RenameBeStrictAboutCoversAnnotationAttribute.php",
"language": "php",
"file_size": 1188,
"cut_index": 518,
"middle_length": 229
} |
* (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 DOMDocument;
use DOMElement;
/**
* @no-named-arguments Parameter names are not covered ... | c function migrate(DOMDocument $document): void
{
$node = $document->getElementsByTagName('coverage')->item(0);
if (!$node instanceof DOMElement || $node->parentNode === null) {
return;
}
if ($node->hasAttr | eDirectoryAttribute implements Migration
{
publi | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveCoverageElementCacheDirectoryAttribute.php",
"language": "php",
"file_size": 989,
"cut_index": 582,
"middle_length": 52
} |
* 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 DOMDocument;
use DOMElement;
/**
* @no-named-argumen... | ation
{
public function migrate(DOMDocument $document): void
{
$node = $document->getElementsByTagName('testdoxGroups')->item(0);
if (!$node instanceof DOMElement || $node->parentNode === null) {
return;
}
| nly class RemoveTestDoxGroupsElement implements Migr | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveTestDoxGroupsElement.php",
"language": "php",
"file_size": 906,
"cut_index": 547,
"middle_length": 52
} |
s=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 function assert;
use DOMDocument;
use DOMEle... | oveTextElement($document);
}
private function removeTestDoxElement(DOMDocument $document): void
{
$nodes = new DOMXPath($document)->query('logging/testdoxXml');
assert($nodes !== false);
$node = $nodes->item(0);
| atibility promise for PHPUnit
*/
final readonly class RemoveLoggingElements implements Migration
{
public function migrate(DOMDocument $document): void
{
$this->removeTestDoxElement($document);
$this->rem | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RemoveLoggingElements.php",
"language": "php",
"file_size": 1546,
"cut_index": 537,
"middle_length": 229
} |
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 function assert;
use DOMD... | assert($root instanceof DOMElement);
if ($root->hasAttribute('requireCoverageMetadata')) {
return;
}
if (!$root->hasAttribute('forceCoversAnnotation')) {
return;
}
$root->setAttribut | compatibility promise for PHPUnit
*/
final readonly class RenameForceCoversAnnotationAttribute implements Migration
{
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
| {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/RenameForceCoversAnnotationAttribute.php",
"language": "php",
"file_size": 1144,
"cut_index": 518,
"middle_length": 229
} |
e(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\Logging;
use PHPUnit\TextUI\Configur... | PHPUnit
*
* @immutable
*/
final readonly class Junit
{
private File $target;
public function __construct(File $target)
{
$this->target = $target;
}
public function target(): File
{
return $this->target;
}
}
| y promise for | {
"filepath": "src/TextUI/Configuration/Xml/Logging/Junit.php",
"language": "php",
"file_size": 794,
"cut_index": 524,
"middle_length": 14
} |
art 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\Logging;
use PHPUnit\TextUI\XmlConfiguration\Exception;
use PHPUnit\TextUI\... | Otr $otr;
private ?TeamCity $teamCity;
private ?TestDoxHtml $testDoxHtml;
private ?TestDoxText $testDoxText;
public function __construct(?Junit $junit, ?Otr $otr, ?TeamCity $teamCity, ?TestDoxHtml $testDoxHtml, ?TestDoxText $testDoxText)
| e backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*
* @immutable
*/
final readonly class Logging
{
private ?Junit $junit;
private ? | {
"filepath": "src/TextUI/Configuration/Xml/Logging/Logging.php",
"language": "php",
"file_size": 2992,
"cut_index": 563,
"middle_length": 229
} |
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\Logging;
use PHPUnit\TextUI\C... | se for PHPUnit
*
* @immutable
*/
final readonly class TeamCity
{
private File $target;
public function __construct(File $target)
{
$this->target = $target;
}
public function target(): File
{
return $this->target | tibility promi | {
"filepath": "src/TextUI/Configuration/Xml/Logging/TeamCity.php",
"language": "php",
"file_size": 797,
"cut_index": 517,
"middle_length": 14
} |
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\Logging\TestDox;
use PHPUnit\... | ty promise for PHPUnit
*
* @immutable
*/
final readonly class Text
{
private File $target;
public function __construct(File $target)
{
$this->target = $target;
}
public function target(): File
{
return $this->ta | rd compatibili | {
"filepath": "src/TextUI/Configuration/Xml/Logging/TestDox/Text.php",
"language": "php",
"file_size": 801,
"cut_index": 517,
"middle_length": 14
} |
stopOnError;
private ?int $stopOnFailure;
private ?int $stopOnIncomplete;
private ?int $stopOnNotice;
private ?int $stopOnRisky;
private ?int $stopOnSkipped;
private ?int $stopOnWarning;
private ?string $filter;
private ?string $excludeFilter;
private ?string $generateBaseline;
p... | string>
*/
private ?array $testsUsing;
/**
* @var ?non-empty-list<non-empty-string>
*/
private ?array $testsRequiringPhpExtension;
private bool $help;
private ?string $includePath;
/**
* @var ?non-empty-array<n | *
* @var ?non-empty-list<non-empty-string>
*/
private ?array $groups;
/**
* @var ?non-empty-list<non-empty-string>
*/
private ?array $testsCovering;
/**
* @var ?non-empty-list<non-empty- | {
"filepath": "src/TextUI/Configuration/Cli/Configuration.php",
"language": "php",
"file_size": 73709,
"cut_index": 3790,
"middle_length": 229
} |
* (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\Configuration;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise... | _construct(string $name, bool|string $value)
{
$this->name = $name;
$this->value = $value;
}
/**
* @return non-empty-string
*/
public function name(): string
{
return $this->name;
}
public fu | non-empty-string $name
*/
public function _ | {
"filepath": "src/TextUI/Configuration/Value/Constant.php",
"language": "php",
"file_size": 961,
"cut_index": 582,
"middle_length": 52
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | struct(ConstantCollection $constants)
{
$this->constants = $constants->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($this->constants[ | antCollectionIterator implements Iterator
{
/**
* @var list<Constant>
*/
private readonly array $constants;
/**
* @var non-negative-int
*/
private int $position = 0;
public function __con | {
"filepath": "src/TextUI/Configuration/Value/ConstantCollectionIterator.php",
"language": "php",
"file_size": 1395,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
use function count;
use Countable;
use... | > $directories
*/
public static function fromArray(array $directories): self
{
return new self(...$directories);
}
private function __construct(Directory ...$directories)
{
$this->directories = $directories;
}
| non-negative-int, Directory>
*/
final readonly class DirectoryCollection implements Countable, IteratorAggregate
{
/**
* @var list<Directory>
*/
private array $directories;
/**
* @param list<Directory | {
"filepath": "src/TextUI/Configuration/Value/DirectoryCollection.php",
"language": "php",
"file_size": 1448,
"cut_index": 524,
"middle_length": 229
} |
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\Configuration;
/**
* @no-named-arguments Param... | ction __construct(string $className, array $parameters)
{
$this->className = $className;
$this->parameters = $parameters;
}
/**
* @return non-empty-string
*/
public function className(): string
{
retu | vate string $className;
/**
* @var array<string,string>
*/
private array $parameters;
/**
* @param non-empty-string $className
* @param array<string,string> $parameters
*/
public fun | {
"filepath": "src/TextUI/Configuration/Value/ExtensionBootstrap.php",
"language": "php",
"file_size": 1171,
"cut_index": 518,
"middle_length": 229
} |
s=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\Configuration;
use function assert;
use Iterator;
/**
* @no-name... |
public function __construct(ExtensionBootstrapCollection $extensionBootstraps)
{
$this->extensionBootstraps = $extensionBootstraps->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public | nBootstrapCollectionIterator implements Iterator
{
/**
* @var list<ExtensionBootstrap>
*/
private readonly array $extensionBootstraps;
/**
* @var non-negative-int
*/
private int $position = 0; | {
"filepath": "src/TextUI/Configuration/Value/ExtensionBootstrapCollectionIterator.php",
"language": "php",
"file_size": 1515,
"cut_index": 537,
"middle_length": 229
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | ction $files)
{
$this->files = $files->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($this->files[$this->position]);
}
/**
| ctionIterator implements Iterator
{
/**
* @var list<File>
*/
private readonly array $files;
/**
* @var non-negative-int
*/
private int $position = 0;
public function __construct(FileColle | {
"filepath": "src/TextUI/Configuration/Value/FileCollectionIterator.php",
"language": "php",
"file_size": 1347,
"cut_index": 524,
"middle_length": 229
} |
s=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 function assert;
use function str_contains;
... | nstance';
private const string LOCAL_NAME_SCHEMA_LOCATION = 'noNamespaceSchemaLocation';
public function migrate(DOMDocument $document): void
{
$root = $document->documentElement;
assert($root instanceof DOMElement);
| class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class UpdateSchemaLocation implements Migration
{
private const string NAMESPACE_URI = 'http://www.w3.org/2001/XMLSchema-i | {
"filepath": "src/TextUI/Configuration/Xml/Migration/Migrations/UpdateSchemaLocation.php",
"language": "php",
"file_size": 1515,
"cut_index": 537,
"middle_length": 229
} |
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\Logging\TestDox;
use PHPUnit\... | ty promise for PHPUnit
*
* @immutable
*/
final readonly class Html
{
private File $target;
public function __construct(File $target)
{
$this->target = $target;
}
public function target(): File
{
return $this->ta | rd compatibili | {
"filepath": "src/TextUI/Configuration/Xml/Logging/TestDox/Html.php",
"language": "php",
"file_size": 801,
"cut_index": 517,
"middle_length": 14
} |
s=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\CliArguments;
use function getcwd;
use function is_dir;
use functi... | efaultConfiguration();
if ($configuration->hasConfigurationFile()) {
if (is_dir($configuration->configurationFile())) {
$candidate = $this->configurationFileInDirectory($configuration->configurationFile());
| e backward compatibility promise for PHPUnit
*/
final readonly class XmlConfigurationFileFinder
{
public function find(Configuration $configuration): false|string
{
$useDefaultConfiguration = $configuration->useD | {
"filepath": "src/TextUI/Configuration/Cli/XmlConfigurationFileFinder.php",
"language": "php",
"file_size": 2018,
"cut_index": 537,
"middle_length": 229
} |
e(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\Configuration;
/**
* @no-named-arguments Parameter n... | * @param non-empty-string $path
*/
public function __construct(string $path)
{
$this->path = $path;
}
/**
* @return non-empty-string
*/
public function path(): string
{
return $this->path;
}
} | th;
/**
| {
"filepath": "src/TextUI/Configuration/Value/Directory.php",
"language": "php",
"file_size": 795,
"cut_index": 524,
"middle_length": 14
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | __construct(DirectoryCollection $directories)
{
$this->directories = $directories->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($this | ctoryCollectionIterator implements Iterator
{
/**
* @var list<Directory>
*/
private readonly array $directories;
/**
* @var non-negative-int
*/
private int $position = 0;
public function | {
"filepath": "src/TextUI/Configuration/Value/DirectoryCollectionIterator.php",
"language": "php",
"file_size": 1414,
"cut_index": 524,
"middle_length": 229
} |
?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\Logging;
use PHPUnit\Text... |
$this->target = $target;
$this->includeGitInformation = $includeGitInformation;
}
public function target(): File
{
return $this->target;
}
public function includeGitInformation(): bool
{
| ompatibility promise for PHPUnit
*
* @immutable
*/
final readonly class Otr
{
private File $target;
private bool $includeGitInformation;
public function __construct(File $target, bool $includeGitInformation)
{ | {
"filepath": "src/TextUI/Configuration/Xml/Logging/Otr.php",
"language": "php",
"file_size": 1048,
"cut_index": 513,
"middle_length": 229
} |
e(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\Configuration;
use function count;
use Countable;
use... | stants
*/
public static function fromArray(array $constants): self
{
return new self(...$constants);
}
private function __construct(Constant ...$constants)
{
$this->constants = $constants;
}
/**
* @re | non-negative-int, Constant>
*/
final readonly class ConstantCollection implements Countable, IteratorAggregate
{
/**
* @var list<Constant>
*/
private array $constants;
/**
* @param list<Constant> $con | {
"filepath": "src/TextUI/Configuration/Value/ConstantCollection.php",
"language": "php",
"file_size": 1336,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
use function count;
use Countable;
use... | c static function fromArray(array $files): self
{
return new self(...$files);
}
private function __construct(File ...$files)
{
$this->files = $files;
}
/**
* @return list<File>
*/
public function asAr | non-negative-int, File>
*/
final readonly class FileCollection implements Countable, IteratorAggregate
{
/**
* @var list<File>
*/
private array $files;
/**
* @param list<File> $files
*/
publi | {
"filepath": "src/TextUI/Configuration/Value/FileCollection.php",
"language": "php",
"file_size": 1354,
"cut_index": 524,
"middle_length": 229
} |
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\Configuration;
/**
* @no-named-arguments P... | /**
* @param non-empty-string $path
*/
public function __construct(string $path)
{
$this->path = $path;
}
/**
* @return non-empty-string
*/
public function path(): string
{
return $this->path;
| g $path;
| {
"filepath": "src/TextUI/Configuration/Value/File.php",
"language": "php",
"file_size": 790,
"cut_index": 514,
"middle_length": 14
} |
hp 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\Configuration;
/**
* @no-named-arguments Pa... | = $path;
$this->includeInCodeCoverage = $includeInCodeCoverage;
}
/**
* @return non-empty-string
*/
public function path(): string
{
return $this->path;
}
public function includeInCodeCoverage(): boo | string $path;
private bool $includeInCodeCoverage;
/**
* @param non-empty-string $path
*/
public function __construct(string $path, bool $includeInCodeCoverage = true)
{
$this->path | {
"filepath": "src/TextUI/Configuration/Value/FilterFile.php",
"language": "php",
"file_size": 1061,
"cut_index": 515,
"middle_length": 229
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | onstruct(FilterFileCollection $files)
{
$this->files = $files->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($this->files[$this->posit | terFileCollectionIterator implements Iterator
{
/**
* @var list<FilterFile>
*/
private readonly array $files;
/**
* @var non-negative-int
*/
private int $position = 0;
public function __c | {
"filepath": "src/TextUI/Configuration/Value/FilterFileCollectionIterator.php",
"language": "php",
"file_size": 1377,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
use IteratorAggregate;
/**
* @no-nam... | s): self
{
return new self(...$groups);
}
private function __construct(Group ...$groups)
{
$this->groups = $groups;
}
/**
* @return list<Group>
*/
public function asArray(): array
{
return | readonly class GroupCollection implements IteratorAggregate
{
/**
* @var list<Group>
*/
private array $groups;
/**
* @param list<Group> $groups
*/
public static function fromArray(array $group | {
"filepath": "src/TextUI/Configuration/Value/GroupCollection.php",
"language": "php",
"file_size": 1497,
"cut_index": 524,
"middle_length": 229
} |
* (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\Configuration;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise... | nstruct(string $name, string $value)
{
$this->name = $name;
$this->value = $value;
}
/**
* @return non-empty-string
*/
public function name(): string
{
return $this->name;
}
public function v | -empty-string $name
*/
public function __co | {
"filepath": "src/TextUI/Configuration/Value/IniSetting.php",
"language": "php",
"file_size": 948,
"cut_index": 582,
"middle_length": 52
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | on __construct(IniSettingCollection $iniSettings)
{
$this->iniSettings = $iniSettings->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($ | SettingCollectionIterator implements Iterator
{
/**
* @var list<IniSetting>
*/
private readonly array $iniSettings;
/**
* @var non-negative-int
*/
private int $position = 0;
public functi | {
"filepath": "src/TextUI/Configuration/Value/IniSettingCollectionIterator.php",
"language": "php",
"file_size": 1419,
"cut_index": 524,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Configuration;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @immutable
*
* @phpstan-type DeprecationTriggers array{functions: list<non-empty-string>, methods: list<non-empty... | rictNotices;
private bool $restrictWarnings;
private bool $ignoreSuppressionOfDeprecations;
private bool $ignoreSuppressionOfPhpDeprecations;
private bool $ignoreSuppressionOfErrors;
private bool $ignoreSuppressionOfNotices;
private | vate FilterDirectoryCollection $includeDirectories;
private FilterFileCollection $includeFiles;
private FilterDirectoryCollection $excludeDirectories;
private FilterFileCollection $excludeFiles;
private bool $rest | {
"filepath": "src/TextUI/Configuration/Value/Source.php",
"language": "php",
"file_size": 7257,
"cut_index": 716,
"middle_length": 229
} |
e(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\Configuration;
use function count;
use Countable;
use... | st<TestDirectory> $directories
*/
public static function fromArray(array $directories): self
{
return new self(...$directories);
}
private function __construct(TestDirectory ...$directories)
{
$this->directories = | non-negative-int, TestDirectory>
*/
final readonly class TestDirectoryCollection implements Countable, IteratorAggregate
{
/**
* @var list<TestDirectory>
*/
private array $directories;
/**
* @param li | {
"filepath": "src/TextUI/Configuration/Value/TestDirectoryCollection.php",
"language": "php",
"file_size": 1480,
"cut_index": 524,
"middle_length": 229
} |
s=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\Configuration;
use PHPUnit\Util\VersionComparisonOperator;
/**
*... | on-empty-string $path
* @param list<non-empty-string> $groups
*/
public function __construct(string $path, string $phpVersion, VersionComparisonOperator $phpVersionOperator, array $groups)
{
$this->path = $path |
*/
private string $path;
private string $phpVersion;
private VersionComparisonOperator $phpVersionOperator;
/**
* @var list<non-empty-string>
*/
private array $groups;
/**
* @param n | {
"filepath": "src/TextUI/Configuration/Value/TestFile.php",
"language": "php",
"file_size": 1651,
"cut_index": 537,
"middle_length": 229
} |
y-summary-for-coverage-text',
'show-uncovered-for-coverage-text',
'coverage-xml=',
'exclude-source-from-xml-coverage',
'path-coverage',
'branch-coverage',
'disallow-test-output',
'display-all-issues',
'display-incomplete',
'display-skipped',
... |
'generate-configuration',
'globals-backup',
'group=',
'covers=',
'uses=',
'requires-php-extension=',
'help',
'resolve-dependencies',
'ignore-dependencies',
'include-path=',
| efault-time-limit=',
'diff-context=',
'enforce-time-limit',
'exclude-group=',
'filter=',
'exclude-filter=',
'generate-baseline=',
'use-baseline=',
'ignore-baseline', | {
"filepath": "src/TextUI/Configuration/Cli/Builder.php",
"language": "php",
"file_size": 46931,
"cut_index": 2151,
"middle_length": 229
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | public function __construct(FilterDirectoryCollection $directories)
{
$this->directories = $directories->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
| s FilterDirectoryCollectionIterator implements Iterator
{
/**
* @var list<FilterDirectory>
*/
private readonly array $directories;
/**
* @var non-negative-int
*/
private int $position = 0;
| {
"filepath": "src/TextUI/Configuration/Value/FilterDirectoryCollectionIterator.php",
"language": "php",
"file_size": 1444,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
use function count;
use Countable;
use... | $files
*/
public static function fromArray(array $files): self
{
return new self(...$files);
}
private function __construct(FilterFile ...$files)
{
$this->files = $files;
}
/**
* @return list<FilterFi | non-negative-int, FilterFile>
*/
final readonly class FilterFileCollection implements Countable, IteratorAggregate
{
/**
* @var list<FilterFile>
*/
private array $files;
/**
* @param list<FilterFile> | {
"filepath": "src/TextUI/Configuration/Value/FilterFileCollection.php",
"language": "php",
"file_size": 1402,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | Collection $groups)
{
$this->groups = $groups->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($this->groups[$this->position]);
}
| lectionIterator implements Iterator
{
/**
* @var list<Group>
*/
private readonly array $groups;
/**
* @var non-negative-int
*/
private int $position = 0;
public function __construct(Group | {
"filepath": "src/TextUI/Configuration/Value/GroupCollectionIterator.php",
"language": "php",
"file_size": 1359,
"cut_index": 524,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Configuration;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @immutable
*... | leCollection $serverVariables;
private VariableCollection $filesVariables;
private VariableCollection $requestVariables;
public function __construct(DirectoryCollection $includePaths, IniSettingCollection $iniSettings, ConstantCollection $cons | tion $globalVariables;
private VariableCollection $envVariables;
private VariableCollection $postVariables;
private VariableCollection $getVariables;
private VariableCollection $cookieVariables;
private Variab | {
"filepath": "src/TextUI/Configuration/Value/Php.php",
"language": "php",
"file_size": 3130,
"cut_index": 614,
"middle_length": 229
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | ic function __construct(TestDirectoryCollection $directories)
{
$this->directories = $directories->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
re | TestDirectoryCollectionIterator implements Iterator
{
/**
* @var list<TestDirectory>
*/
private readonly array $directories;
/**
* @var non-negative-int
*/
private int $position = 0;
publ | {
"filepath": "src/TextUI/Configuration/Value/TestDirectoryCollectionIterator.php",
"language": "php",
"file_size": 1434,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
use function count;
use Countable;
use... | */
public static function fromArray(array $files): self
{
return new self(...$files);
}
private function __construct(TestFile ...$files)
{
$this->files = $files;
}
/**
* @return list<TestFile>
*/
| non-negative-int, TestFile>
*/
final readonly class TestFileCollection implements Countable, IteratorAggregate
{
/**
* @var list<TestFile>
*/
private array $files;
/**
* @param list<TestFile> $files
| {
"filepath": "src/TextUI/Configuration/Value/TestFileCollection.php",
"language": "php",
"file_size": 1386,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
use IteratorAggregate;
/**
* @templa... | $extensionBootstraps
*/
public static function fromArray(array $extensionBootstraps): self
{
return new self(...$extensionBootstraps);
}
private function __construct(ExtensionBootstrap ...$extensionBootstraps)
{
$t | le
*/
final readonly class ExtensionBootstrapCollection implements IteratorAggregate
{
/**
* @var list<ExtensionBootstrap>
*/
private array $extensionBootstraps;
/**
* @param list<ExtensionBootstrap> | {
"filepath": "src/TextUI/Configuration/Value/ExtensionBootstrapCollection.php",
"language": "php",
"file_size": 1364,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
use function count;
use Countable;
use... | ting> $iniSettings
*/
public static function fromArray(array $iniSettings): self
{
return new self(...$iniSettings);
}
private function __construct(IniSetting ...$iniSettings)
{
$this->iniSettings = $iniSettings;
| non-negative-int, IniSetting>
*/
final readonly class IniSettingCollection implements Countable, IteratorAggregate
{
/**
* @var list<IniSetting>
*/
private array $iniSettings;
/**
* @param list<IniSet | {
"filepath": "src/TextUI/Configuration/Value/IniSettingCollection.php",
"language": "php",
"file_size": 1370,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
/**
* @no-named-arguments Parameter n... | TestDirectoryCollection $directories, TestFileCollection $files, FileCollection $exclude)
{
$this->name = $name;
$this->directories = $directories;
$this->files = $files;
$this->exclude = $exclude;
| me;
private TestDirectoryCollection $directories;
private TestFileCollection $files;
private FileCollection $exclude;
/**
* @param non-empty-string $name
*/
public function __construct(string $name, | {
"filepath": "src/TextUI/Configuration/Value/TestSuite.php",
"language": "php",
"file_size": 1424,
"cut_index": 524,
"middle_length": 229
} |
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\Configuration;
/**
* @no-named-arguments P... | /**
* @param non-empty-string $name
*/
public function __construct(string $name)
{
$this->name = $name;
}
/**
* @return non-empty-string
*/
public function name(): string
{
return $this->name;
| ng $name;
| {
"filepath": "src/TextUI/Configuration/Value/Group.php",
"language": "php",
"file_size": 791,
"cut_index": 514,
"middle_length": 14
} |
e(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\Configuration;
use function count;
use Countable;
use... | ram list<FilterDirectory> $directories
*/
public static function fromArray(array $directories): self
{
return new self(...$directories);
}
private function __construct(FilterDirectory ...$directories)
{
$this->dire | non-negative-int, FilterDirectory>
*/
final readonly class FilterDirectoryCollection implements Countable, IteratorAggregate
{
/**
* @var list<FilterDirectory>
*/
private array $directories;
/**
* @pa | {
"filepath": "src/TextUI/Configuration/Value/FilterDirectoryCollection.php",
"language": "php",
"file_size": 1502,
"cut_index": 524,
"middle_length": 229
} |
art 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\Configuration;
use PHPUnit\Util\VersionComparisonOperator;
/**
* @no-named-arguments Param... | ist<non-empty-string>
*/
private array $groups;
/**
* @param non-empty-string $path
* @param non-empty-string $suffix
* @param list<non-empty-string> $groups
*/
public function __construct(string $path, str | string $path;
private string $prefix;
/**
* @var non-empty-string
*/
private string $suffix;
private string $phpVersion;
private VersionComparisonOperator $phpVersionOperator;
/**
* @var l | {
"filepath": "src/TextUI/Configuration/Value/TestDirectory.php",
"language": "php",
"file_size": 2133,
"cut_index": 563,
"middle_length": 229
} |
* 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\Output\Default\ProgressPrinter;
use PHPUnit\Event\Test\BeforeFirstTestMethod... | atibility promise for PHPUnit
*/
final readonly class BeforeTestClassMethodErroredSubscriber extends Subscriber implements BeforeFirstTestMethodErroredSubscriber
{
public function notify(BeforeFirstTestMethodErrored $event): void
{
$this-> | ernal This class is not covered by the backward comp | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/BeforeTestClassMethodErroredSubscriber.php",
"language": "php",
"file_size": 906,
"cut_index": 547,
"middle_length": 52
} |
* (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\Output\Compact\ProgressPrinter;
use PHPUnit\Event\Test\AfterLastTestMethodErrored;
use PHPUnit\Event\Test\After... | kward compatibility promise for PHPUnit
*/
final readonly class AfterLastTestMethodErroredSubscriber extends Subscriber implements AfterLastTestMethodErroredSubscriberInterface
{
public function notify(AfterLastTestMethodErrored $event): void
{
| *
* @internal This class is not covered by the bac | {
"filepath": "src/TextUI/Output/Compact/ProgressPrinter/Subscriber/AfterLastTestMethodErroredSubscriber.php",
"language": "php",
"file_size": 958,
"cut_index": 582,
"middle_length": 52
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | _construct(TestSuiteCollection $testSuites)
{
$this->testSuites = $testSuites->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($this->te | SuiteCollectionIterator implements Iterator
{
/**
* @var list<TestSuite>
*/
private readonly array $testSuites;
/**
* @var non-negative-int
*/
private int $position = 0;
public function _ | {
"filepath": "src/TextUI/Configuration/Value/TestSuiteCollectionIterator.php",
"language": "php",
"file_size": 1407,
"cut_index": 524,
"middle_length": 229
} |
e(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\Configuration;
use function assert;
use Iterator;
/*... | struct(VariableCollection $variables)
{
$this->variables = $variables->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($this->variables[ | bleCollectionIterator implements Iterator
{
/**
* @var list<Variable>
*/
private readonly array $variables;
/**
* @var non-negative-int
*/
private int $position = 0;
public function __con | {
"filepath": "src/TextUI/Configuration/Value/VariableCollectionIterator.php",
"language": "php",
"file_size": 1395,
"cut_index": 524,
"middle_length": 229
} |
* (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\Command;
use function version_compare;
use PHPUnit\Runner\Version;
/**
* @no-named-arguments Parameter names ... | $version;
public function __construct(string $version)
{
$this->version = $version;
}
public function execute(): Result
{
if (version_compare(Version::id(), $this->version, '>=')) {
return Result::from();
| rsionCommand implements Command
{
private string | {
"filepath": "src/TextUI/Command/Commands/AtLeastVersionCommand.php",
"language": "php",
"file_size": 959,
"cut_index": 582,
"middle_length": 52
} |
hp 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\Configuration;
/**
* @no-named-arguments Pa... | $this->value = $value;
$this->force = $force;
}
/**
* @return non-empty-string
*/
public function name(): string
{
return $this->name;
}
public function value(): mixed
{
return $this->val | ring $name;
private mixed $value;
private bool $force;
/**
* @param non-empty-string $name
*/
public function __construct(string $name, mixed $value, bool $force)
{
$this->name = $name;
| {
"filepath": "src/TextUI/Configuration/Value/Variable.php",
"language": "php",
"file_size": 1088,
"cut_index": 515,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Command;
use const PHP_EOL;
use const STDIN;
use function assert;
use function defined;
use function fgets;
use function file_put_contents;
use... | s Command
{
public function execute(): Result
{
$directory = getcwd();
print 'Generating phpunit.xml in ' . $directory . PHP_EOL . PHP_EOL;
print 'Bootstrap script (relative to path shown above; default: vendor/autoload.php | r names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class GenerateConfigurationCommand implement | {
"filepath": "src/TextUI/Command/Commands/GenerateConfigurationCommand.php",
"language": "php",
"file_size": 3403,
"cut_index": 614,
"middle_length": 229
} |
s=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\Command;
use const PHP_EOL;
use function array_unique;
use functio... | mmand
{
/**
* @var list<PhptTestCase|TestCase>
*/
private array $tests;
/**
* @param list<PhptTestCase|TestCase> $tests
*/
public function __construct(array $tests)
{
$this->tests = $tests;
}
/**
| meter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class ListTestFilesCommand implements Co | {
"filepath": "src/TextUI/Command/Commands/ListTestFilesCommand.php",
"language": "php",
"file_size": 1732,
"cut_index": 537,
"middle_length": 229
} |
art 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\Command;
use const PHP_EOL;
use function assert;
use function count;
use function ksort;
use... | _construct(TestSuite $testSuite)
{
$this->testSuite = $testSuite;
}
public function execute(): Result
{
/** @var array<non-empty-string, positive-int> $suites */
$suites = [];
foreach ($this->testSuite->tes | for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class ListTestSuitesCommand implements Command
{
private TestSuite $testSuite;
public function _ | {
"filepath": "src/TextUI/Command/Commands/ListTestSuitesCommand.php",
"language": "php",
"file_size": 2784,
"cut_index": 563,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Command;
use const PHP_EOL;
use function assert;
use function file_put_contents;
use function ksort;
use function sprintf;
use PHPUnit\Framewor... | */
private array $tests;
private string $filename;
/**
* @param list<PhptTestCase|TestCase> $tests
*/
public function __construct(array $tests, string $filename)
{
$this->tests = $tests;
$this->filename = $ | ise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class ListTestsAsXmlCommand implements Command
{
/**
* @var list<PhptTestCase|TestCase>
| {
"filepath": "src/TextUI/Command/Commands/ListTestsAsXmlCommand.php",
"language": "php",
"file_size": 3975,
"cut_index": 614,
"middle_length": 229
} |
* 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\Command;
use PHPUnit\TextUI\Help;
/**
* @no-named-arguments Parameter name... | ExitCode;
public function __construct(int $shellExitCode)
{
$this->shellExitCode = $shellExitCode;
}
public function execute(): Result
{
return Result::from(
(new Help)->generate(),
$this->shell | pCommand implements Command
{
private int $shell | {
"filepath": "src/TextUI/Command/Commands/ShowHelpCommand.php",
"language": "php",
"file_size": 884,
"cut_index": 547,
"middle_length": 52
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Command;
use const PHP_EOL;
use function assert;
use function realpath;
use function sprintf;
use PHPUnit\Runner\Version;
use PHPUnit\TextUI\Xm... |
final readonly class ValidateConfigurationCommand implements Command
{
private string $filename;
public function __construct(string $filename)
{
$this->filename = $filename;
}
public function execute(): Result
{
t | \Util\Xml\XmlException;
/**
* @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
*/ | {
"filepath": "src/TextUI/Command/Commands/ValidateConfigurationCommand.php",
"language": "php",
"file_size": 3151,
"cut_index": 614,
"middle_length": 229
} |
art 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\Command;
use const PHP_EOL;
use function assert;
use function sprintf;
use function version_... | ublic function __construct(Downloader $downloader, int $majorVersionNumber, string $versionId)
{
$this->downloader = $downloader;
$this->majorVersionNumber = $majorVersionNumber;
$this->versionId = $versionId;
| ed by the backward compatibility promise for PHPUnit
*/
final readonly class VersionCheckCommand implements Command
{
private Downloader $downloader;
private int $majorVersionNumber;
private string $versionId;
p | {
"filepath": "src/TextUI/Command/Commands/VersionCheckCommand.php",
"language": "php",
"file_size": 2452,
"cut_index": 563,
"middle_length": 229
} |
er;
use PHPUnit\Logging\TestDox\TestResultCollection;
use PHPUnit\Runner\DirectoryDoesNotExistException;
use PHPUnit\TestRunner\TestResult\TestResult;
use PHPUnit\TextUI\CannotOpenSocketException;
use PHPUnit\TextUI\Configuration\Configuration;
use PHPUnit\TextUI\InvalidSocketException;
use PHPUnit\TextUI\Output\Compac... | ltPrinter;
use SebastianBergmann\Timer\Duration;
use SebastianBergmann\Timer\ResourceUsageFormatter;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by | Printer as DefaultProgressPrinter;
use PHPUnit\TextUI\Output\Default\ResultPrinter as DefaultResultPrinter;
use PHPUnit\TextUI\Output\Default\UnexpectedOutputPrinter;
use PHPUnit\TextUI\Output\TestDox\ResultPrinter as TestDoxResu | {
"filepath": "src/TextUI/Output/Facade.php",
"language": "php",
"file_size": 11126,
"cut_index": 921,
"middle_length": 229
} |
e(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\Configuration;
use function count;
use Countable;
use... | $testSuites
*/
public static function fromArray(array $testSuites): self
{
return new self(...$testSuites);
}
private function __construct(TestSuite ...$testSuites)
{
$this->testSuites = $testSuites;
}
/* | non-negative-int, TestSuite>
*/
final readonly class TestSuiteCollection implements Countable, IteratorAggregate
{
/**
* @var list<TestSuite>
*/
private array $testSuites;
/**
* @param list<TestSuite> | {
"filepath": "src/TextUI/Configuration/Value/TestSuiteCollection.php",
"language": "php",
"file_size": 1439,
"cut_index": 524,
"middle_length": 229
} |
t\Event\Facade;
use PHPUnit\Event\Test\DeprecationTriggered;
use PHPUnit\Event\Test\Errored;
use PHPUnit\Event\Test\ErrorTriggered;
use PHPUnit\Event\Test\NoticeTriggered;
use PHPUnit\Event\Test\PhpDeprecationTriggered;
use PHPUnit\Event\Test\PhpNoticeTriggered;
use PHPUnit\Event\Test\PhpunitWarningTriggered;
use PHPUn... | red by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final class ProgressPrinter
{
private readonly Printer $printer;
private readonly bool $colors;
| rk\TestStatus\TestStatus;
use PHPUnit\TextUI\Configuration\Source;
use PHPUnit\TextUI\Configuration\SourceFilter;
use PHPUnit\TextUI\Output\Printer;
use PHPUnit\Util\Color;
/**
* @no-named-arguments Parameter names are not cove | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/ProgressPrinter.php",
"language": "php",
"file_size": 13244,
"cut_index": 921,
"middle_length": 229
} |
e(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\Configuration;
use function count;
use Countable;
use... | iables
*/
public static function fromArray(array $variables): self
{
return new self(...$variables);
}
private function __construct(Variable ...$variables)
{
$this->variables = $variables;
}
/**
* @re | non-negative-int, Variable>
*/
final readonly class VariableCollection implements Countable, IteratorAggregate
{
/**
* @var list<Variable>
*/
private array $variables;
/**
* @param list<Variable> $var | {
"filepath": "src/TextUI/Configuration/Value/VariableCollection.php",
"language": "php",
"file_size": 1336,
"cut_index": 524,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Command;
use const E_ALL;
use const PHP_EOL;
use function assert;
use function extension_loaded;
use function in_array;
use function ini_get;
use function max;
use function sprintf;
use function strlen;
use PHPUnit\Runner\Version;
use PHPUnit\Ut... | e = (new Console)->hasColorSupport();
}
public function execute(): Result
{
$lines = [];
$shellExitCode = 0;
foreach ($this->settings() as $name => $setting) {
foreach ($setting['requiredExtensions' | not covered by the backward compatibility promise for PHPUnit
*/
final readonly class CheckPhpConfigurationCommand implements Command
{
private bool $colorize;
public function __construct()
{
$this->coloriz | {
"filepath": "src/TextUI/Command/Commands/CheckPhpConfigurationCommand.php",
"language": "php",
"file_size": 5258,
"cut_index": 716,
"middle_length": 229
} |
art 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\Command;
use const PHP_EOL;
use function count;
use function ksort;
use function sprintf;
us... | e>
*/
private array $tests;
/**
* @param list<PhptTestCase|TestCase> $tests
*/
public function __construct(array $tests)
{
$this->tests = $tests;
}
public function execute(): Result
{
/** @var ar | ibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class ListGroupsCommand implements Command
{
/**
* @var list<PhptTestCase|TestCas | {
"filepath": "src/TextUI/Command/Commands/ListGroupsCommand.php",
"language": "php",
"file_size": 2149,
"cut_index": 563,
"middle_length": 229
} |
s=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\Command;
use const PHP_EOL;
use function count;
use function sprin... | TestCase>
*/
private array $tests;
/**
* @param list<PhptTestCase|TestCase> $tests
*/
public function __construct(array $tests)
{
$this->tests = $tests;
}
public function execute(): Result
{
$buf | atibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class ListTestsAsTextCommand implements Command
{
/**
* @var list<PhptTestCase| | {
"filepath": "src/TextUI/Command/Commands/ListTestsAsTextCommand.php",
"language": "php",
"file_size": 1665,
"cut_index": 537,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output;
use const PHP_EOL;
use function sprintf;
use PHPUnit\TestRunner\TestResult\TestResult;
use PHPUnit\Util\Color;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal ... |
{
if ($result->numberOfTestsRun() === 0) {
$this->printWithColor(
'fg-black, bg-yellow',
'No tests executed!',
);
return;
}
if ($result->wasSuccessful() &&
| te bool $countPrinted = false;
public function __construct(Printer $printer, bool $colors)
{
$this->printer = $printer;
$this->colors = $colors;
}
public function print(TestResult $result): void | {
"filepath": "src/TextUI/Output/SummaryPrinter.php",
"language": "php",
"file_size": 5779,
"cut_index": 716,
"middle_length": 229
} |
Test\BeforeFirstTestMethodErrored;
use PHPUnit\Event\Test\BeforeFirstTestMethodFailed;
use PHPUnit\Event\Test\ConsideredRisky;
use PHPUnit\Event\Test\DeprecationTriggered;
use PHPUnit\Event\Test\ErrorTriggered;
use PHPUnit\Event\Test\NoticeTriggered;
use PHPUnit\Event\Test\PhpDeprecationTriggered;
use PHPUnit\Event\Tes... | nner\TestResult\TestResult;
use PHPUnit\TextUI\Output\Printer;
/**
* @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 | punitWarningTriggered;
use PHPUnit\Event\Test\PhpWarningTriggered;
use PHPUnit\Event\Test\WarningTriggered;
use PHPUnit\Event\TestRunner\Issue as TestRunnerIssue;
use PHPUnit\TestRunner\TestResult\Issues\Issue;
use PHPUnit\TestRu | {
"filepath": "src/TextUI/Output/Default/ResultPrinter.php",
"language": "php",
"file_size": 26657,
"cut_index": 1331,
"middle_length": 229
} |
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\Command;
/**
* @immutable
*
* @no-named-argu... | public static function from(string $output = '', int $shellExitCode = self::SUCCESS): self
{
return new self($output, $shellExitCode);
}
private function __construct(string $output, int $shellExitCode)
{
$this->output | adonly class Result
{
public const int SUCCESS = 0;
public const int FAILURE = 1;
public const int EXCEPTION = 2;
public const int CRASH = 255;
private string $output;
private int $shellExitCode;
| {
"filepath": "src/TextUI/Command/Result.php",
"language": "php",
"file_size": 1246,
"cut_index": 518,
"middle_length": 229
} |
s=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\Command;
use const PHP_EOL;
use function copy;
use function file_p... | n __construct(string $filename)
{
$this->filename = $filename;
}
public function execute(): Result
{
try {
$migrated = (new Migrator)->migrate($this->filename);
copy($this->filename, $this->filename | e for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class MigrateConfigurationCommand implements Command
{
private string $filename;
public functio | {
"filepath": "src/TextUI/Command/Commands/MigrateConfigurationCommand.php",
"language": "php",
"file_size": 1765,
"cut_index": 537,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Command;
use const PHP_EOL;
use function printf;
use PHPUnit\TextUI\Configuration\CodeCoverageFilterRegistry;
use PHPUnit\TextUI\Configuration\... | e for PHPUnit
*
* @codeCoverageIgnore
*/
final readonly class WarmCodeCoverageCacheCommand implements Command
{
private Configuration $configuration;
private CodeCoverageFilterRegistry $codeCoverageFilterRegistry;
public function __construc | tion;
use SebastianBergmann\Timer\Timer;
/**
* @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 promis | {
"filepath": "src/TextUI/Command/Commands/WarmCodeCoverageCacheCommand.php",
"language": "php",
"file_size": 3123,
"cut_index": 614,
"middle_length": 229
} |
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\Command;
use const PHP_EOL;
use PHPUnit\Framewo... | * @param list<PhptTestCase|TestCase> $tests
*/
public function __construct(array $tests)
{
$this->tests = $tests;
}
public function execute(): Result
{
$buffer = '';
foreach ($this->tests as $test) {
| s class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class ListTestIdsCommand implements Command
{
/**
* @var list<PhptTestCase|TestCase>
*/
private array $tests;
/**
| {
"filepath": "src/TextUI/Command/Commands/ListTestIdsCommand.php",
"language": "php",
"file_size": 1130,
"cut_index": 518,
"middle_length": 229
} |
clare(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\Output\Default\ProgressPrinter;
use PHPUnit\Event... | readonly class ChildProcessErroredSubscriber extends Subscriber implements \PHPUnit\Event\TestRunner\ChildProcessErroredSubscriber
{
public function notify(ChildProcessErrored $event): void
{
$this->printer()->childProcessErrored($event);
| backward compatibility promise for PHPUnit
*/
final | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/ChildProcessErroredSubscriber.php",
"language": "php",
"file_size": 836,
"cut_index": 520,
"middle_length": 52
} |
clare(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\Output\Default\ProgressPrinter;
use PHPUnit\Event... | patibility promise for PHPUnit
*/
final readonly class TestConsideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber
{
public function notify(ConsideredRisky $event): void
{
$this->printer()->testConsideredRisky();
| ternal This class is not covered by the backward com | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestConsideredRiskySubscriber.php",
"language": "php",
"file_size": 836,
"cut_index": 520,
"middle_length": 52
} |
e(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\Output\Default\ProgressPrinter;
use PHPUnit\Event\Tes... | y the backward compatibility promise for PHPUnit
*/
final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber
{
public function notify(Errored $event): void
{
$this->printer()->testErrored($event);
}
}
| not covered b | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestErroredSubscriber.php",
"language": "php",
"file_size": 794,
"cut_index": 524,
"middle_length": 14
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.