prefix stringlengths 512 512 | suffix stringlengths 256 256 | middle stringlengths 14 229 | meta dict |
|---|---|---|---|
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\Metadata;
use PHPUnit\Runner\Extension\Extension;
... | lass)
{
parent::__construct($level);
$this->extensionClass = $extensionClass;
}
public function isRequiresPhpunitExtension(): true
{
return true;
}
/**
* @return class-string<Extension>
*/
pu |
{
/**
* @var class-string<Extension>
*/
private string $extensionClass;
/**
* @param class-string<Extension> $extensionClass
*/
protected function __construct(Level $level, string $extensionC | {
"filepath": "src/Metadata/RequiresPhpunitExtension.php",
"language": "php",
"file_size": 1091,
"cut_index": 515,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments ... | vel $level, string $setting, string $value)
{
parent::__construct($level);
$this->setting = $setting;
$this->value = $value;
}
public function isRequiresSetting(): true
{
return true;
}
/**
| rivate string $setting;
/**
* @var non-empty-string
*/
private string $value;
/**
* @param non-empty-string $setting
* @param non-empty-string $value
*/
protected function __construct(Le | {
"filepath": "src/Metadata/RequiresSetting.php",
"language": "php",
"file_size": 1247,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parame... | ct(Level $level, string $className, string $methodName)
{
parent::__construct($level);
$this->className = $className;
$this->methodName = $methodName;
}
public function isTestDoxFormatter(): true
{
return | ring $className;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @param class-string $className
* @param non-empty-string $methodName
*/
protected function __constru | {
"filepath": "src/Metadata/TestDoxFormatter.php",
"language": "php",
"file_size": 1289,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility pr... | el, string $className)
{
parent::__construct($level);
$this->className = $className;
}
public function isUsesClass(): true
{
return true;
}
/**
* @return class-string
*/
public function class | */
protected function __construct(Level $lev | {
"filepath": "src/Metadata/UsesClass.php",
"language": "php",
"file_size": 952,
"cut_index": 582,
"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\Metadata;
/**
* @immutable
*
* @no-named-argum... | $this->interfaceName = $interfaceName;
}
public function isUsesClassesThatImplementInterface(): true
{
return true;
}
/**
* @return class-string
*/
public function interfaceName(): string
{
return | tring
*/
private string $interfaceName;
/**
* @param class-string $interfaceName
*/
protected function __construct(Level $level, string $interfaceName)
{
parent::__construct($level);
| {
"filepath": "src/Metadata/UsesClassesThatImplementInterface.php",
"language": "php",
"file_size": 1028,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parame... | el $level, string $className, string $methodName)
{
parent::__construct($level);
$this->className = $className;
$this->methodName = $methodName;
}
public function isUsesMethod(): true
{
return true;
}
| className;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @param class-string $className
* @param non-empty-string $methodName
*/
protected function __construct(Lev | {
"filepath": "src/Metadata/UsesMethod.php",
"language": "php",
"file_size": 1277,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility pr... | el, string $traitName)
{
parent::__construct($level);
$this->traitName = $traitName;
}
public function isUsesTrait(): true
{
return true;
}
/**
* @return trait-string
*/
public function trait | */
protected function __construct(Level $lev | {
"filepath": "src/Metadata/UsesTrait.php",
"language": "php",
"file_size": 952,
"cut_index": 582,
"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\Metadata\Version;
use function version_compare;
use PH... | ersion = $version;
$this->operator = $operator;
}
public function isSatisfiedBy(string $version): bool
{
return version_compare($version, $this->version, $this->operator->asString());
}
public function asString(): str | mparisonRequirement extends Requirement
{
private string $version;
private VersionComparisonOperator $operator;
public function __construct(string $version, VersionComparisonOperator $operator)
{
$this->v | {
"filepath": "src/Metadata/Version/ComparisonRequirement.php",
"language": "php",
"file_size": 1170,
"cut_index": 518,
"middle_length": 229
} |
es\DependsExternalUsingDeepClone;
use PHPUnit\Framework\Attributes\DependsExternalUsingShallowClone;
use PHPUnit\Framework\Attributes\DependsOnClass;
use PHPUnit\Framework\Attributes\DependsOnClassUsingDeepClone;
use PHPUnit\Framework\Attributes\DependsOnClassUsingShallowClone;
use PHPUnit\Framework\Attributes\DependsU... | Deprecations;
use PHPUnit\Framework\Attributes\IgnorePhpunitDeprecations;
use PHPUnit\Framework\Attributes\IgnorePhpunitWarnings;
use PHPUnit\Framework\Attributes\Large;
use PHPUnit\Framework\Attributes\Medium;
use PHPUnit\Framework\Attributes\PostConditio | erformAssertions;
use PHPUnit\Framework\Attributes\ExcludeGlobalVariableFromBackup;
use PHPUnit\Framework\Attributes\ExcludeStaticPropertyFromBackup;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Ignore | {
"filepath": "src/Metadata/Parser/AttributeParser.php",
"language": "php",
"file_size": 38408,
"cut_index": 2151,
"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\Metadata\Version;
use function preg_match;
use PharIo\Version\Unsupported... | ION_COMPARISON = "/(?P<operator>!=|<|<=|<>|=|==|>|>=)?\s*(?P<version>[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m";
/**
* @throws InvalidVersionOperatorException
* @throws InvalidVersionRequirementException
*/
public static fun | til\VersionComparisonOperator;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
abstract readonly class Requirement
{
private const string VERS | {
"filepath": "src/Metadata/Version/Requirement.php",
"language": "php",
"file_size": 1883,
"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\Metadata\Parser;
use function assert;
use function class_exists;
use function method_exists;
use PH... | e = [];
/**
* @var array<non-empty-string, MetadataCollection>
*/
private array $methodCache = [];
/**
* @var array<non-empty-string, MetadataCollection>
*/
private array $classAndMethodCache = [];
public function | e backward compatibility promise for PHPUnit
*/
final class CachingParser implements Parser
{
private readonly Parser $reader;
/**
* @var array<class-string, MetadataCollection>
*/
private array $classCach | {
"filepath": "src/Metadata/Parser/CachingParser.php",
"language": "php",
"file_size": 2699,
"cut_index": 563,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility pr... | onstruct(Level $level, string $functionName)
{
parent::__construct($level);
$this->functionName = $functionName;
}
public function isCoversFunction(): true
{
return true;
}
/**
* @return non-empty-str | ing $functionName
*/
protected function __c | {
"filepath": "src/Metadata/CoversFunction.php",
"language": "php",
"file_size": 995,
"cut_index": 582,
"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\Metadata;
/**
* @immutable
*
* @no-named-argu... | unctionName = $functionName;
}
public function isRequiresFunction(): true
{
return true;
}
/**
* @return non-empty-string
*/
public function functionName(): string
{
return $this->functionName;
}
| /
private string $functionName;
/**
* @param non-empty-string $functionName
*/
protected function __construct(Level $level, string $functionName)
{
parent::__construct($level);
$this->f | {
"filepath": "src/Metadata/RequiresFunction.php",
"language": "php",
"file_size": 999,
"cut_index": 512,
"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\Metadata;
use PHPUnit\Metadata\Version\Requirement;
/**
* @immutable
*... | Requirement $versionRequirement)
{
parent::__construct($level);
$this->extension = $extension;
$this->versionRequirement = $versionRequirement;
}
public function isRequiresPhpExtension(): true
{
re | on-empty-string
*/
private string $extension;
private ?Requirement $versionRequirement;
/**
* @param non-empty-string $extension
*/
protected function __construct(Level $level, string $extension, ? | {
"filepath": "src/Metadata/RequiresPhpExtension.php",
"language": "php",
"file_size": 1652,
"cut_index": 537,
"middle_length": 229
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Metadata;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
fi... | parent::__construct($level);
$this->text = $text;
}
public function isTestDox(): true
{
return true;
}
/**
* @return non-empty-string
*/
public function text(): string
{
return $this->tex | n __construct(Level $level, string $text)
{
| {
"filepath": "src/Metadata/TestDox.php",
"language": "php",
"file_size": 925,
"cut_index": 606,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility pr... | struct(Level $level, string $className)
{
parent::__construct($level);
$this->className = $className;
}
public function isUsesClassesThatExtendClass(): true
{
return true;
}
/**
* @return class-string | ring $className
*/
protected function __con | {
"filepath": "src/Metadata/UsesClassesThatExtendClass.php",
"language": "php",
"file_size": 986,
"cut_index": 582,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility pr... | t(Level $level, string $namespace)
{
parent::__construct($level);
$this->namespace = $namespace;
}
public function isUsesNamespace(): true
{
return true;
}
/**
* @return non-empty-string
*/
p | $namespace
*/
protected function __construc | {
"filepath": "src/Metadata/UsesNamespace.php",
"language": "php",
"file_size": 972,
"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\Metadata\Version;
use function assert;
use function preg_rep... |
}
public function isSatisfiedBy(string $version): bool
{
return $this->constraint->complies(
new Version($this->sanitize($version)),
);
}
public function asString(): string
{
return $this->cons | HPUnit
*/
final readonly class ConstraintRequirement extends Requirement
{
private VersionConstraint $constraint;
public function __construct(VersionConstraint $constraint)
{
$this->constraint = $constraint; | {
"filepath": "src/Metadata/Version/ConstraintRequirement.php",
"language": "php",
"file_size": 1298,
"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\Metadata;
use const PHP_EOL;
use function sprintf;
use PHPUn... | * @param non-empty-string $file
* @param positive-int $line
* @param non-empty-string $message
*/
public function __construct(string $attributeName, string $target, string $file, int $line, string $message)
{
parent: | he backward compatibility promise for PHPUnit
*/
final class InvalidAttributeException extends RuntimeException implements Exception
{
/**
* @param non-empty-string $attributeName
* @param non-empty-string $target
| {
"filepath": "src/Metadata/Exception/InvalidAttributeException.php",
"language": "php",
"file_size": 1292,
"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\Metadata;
/**
* @immutable
*
* @no-named-argum... | $this->messagePattern = $messagePattern;
}
public function isIgnorePhpunitWarnings(): true
{
return true;
}
/**
* @return null|non-empty-string
*/
public function messagePattern(): ?string
{
ret | private ?string $messagePattern;
/**
* @param null|non-empty-string $messagePattern
*/
protected function __construct(Level $level, null|string $messagePattern)
{
parent::__construct($level);
| {
"filepath": "src/Metadata/IgnorePhpunitWarnings.php",
"language": "php",
"file_size": 1033,
"cut_index": 513,
"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\Metadata;
/**
* @immutable
*
* @no-named-argumen... | _construct($level);
$this->operatingSystemFamily = $operatingSystemFamily;
}
public function isRequiresOperatingSystemFamily(): true
{
return true;
}
/**
* @return non-empty-string
*/
public function ope | ing
*/
private string $operatingSystemFamily;
/**
* @param non-empty-string $operatingSystemFamily
*/
protected function __construct(Level $level, string $operatingSystemFamily)
{
parent::_ | {
"filepath": "src/Metadata/RequiresOperatingSystemFamily.php",
"language": "php",
"file_size": 1088,
"cut_index": 515,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments ... | $this->data = $data;
$this->name = $name;
}
public function isTestWith(): true
{
return true;
}
public function data(): mixed
{
return $this->data;
}
/**
* @phpstan-assert-if-true !null $t | string
*/
private ?string $name;
/**
* @param ?non-empty-string $name
*/
protected function __construct(Level $level, mixed $data, ?string $name = null)
{
parent::__construct($level);
| {
"filepath": "src/Metadata/TestWith.php",
"language": "php",
"file_size": 1234,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parame... | */
protected function __construct(Level $level, string $environmentVariableName, null|string $value)
{
parent::__construct($level);
$this->environmentVariableName = $environmentVariableName;
$this->value | private string $environmentVariableName;
/**
* @var ?non-empty-string
*/
private null|string $value;
/**
* @param non-empty-string $environmentVariableName
* @param ?non-empty-string $value
| {
"filepath": "src/Metadata/WithEnvironmentVariable.php",
"language": "php",
"file_size": 1410,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parameter names are... | ring $methodName
*/
protected function __construct(Level $level, string $className, string $methodName, bool $validateArgumentCount, bool $skipWhenEmpty)
{
parent::__construct($level);
$this->className = $className |
/**
* @var non-empty-string
*/
private string $methodName;
private bool $validateArgumentCount;
private bool $skipWhenEmpty;
/**
* @param class-string $className
* @param non-empty-st | {
"filepath": "src/Metadata/DataProvider.php",
"language": "php",
"file_size": 1745,
"cut_index": 537,
"middle_length": 229
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Metadata;
use PHPUnit\Metadata\Version\Requirement;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backwa... | t::__construct($level);
$this->versionRequirement = $versionRequirement;
}
public function isRequiresPhpunit(): true
{
return true;
}
public function versionRequirement(): Requirement
{
return $this->versi | Requirement $versionRequirement)
{
paren | {
"filepath": "src/Metadata/RequiresPhpunit.php",
"language": "php",
"file_size": 937,
"cut_index": 606,
"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\Metadata;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility pr... | struct(Level $level, string $functionName)
{
parent::__construct($level);
$this->functionName = $functionName;
}
public function isUsesFunction(): true
{
return true;
}
/**
* @return non-empty-string
| g $functionName
*/
protected function __con | {
"filepath": "src/Metadata/UsesFunction.php",
"language": "php",
"file_size": 991,
"cut_index": 582,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Metadata\Parser;
/**
* Attribute information is static within a single PHP process.
* It is therefore okay to use a Singleton registry here.... | ic ?Parser $instance = null;
public static function parser(): Parser
{
return self::$instance ?? self::$instance = self::build();
}
private static function build(): Parser
{
return new CachingParser(new AttributeParser | PHPUnit
*/
final class Registry
{
private stat | {
"filepath": "src/Metadata/Parser/Registry.php",
"language": "php",
"file_size": 925,
"cut_index": 606,
"middle_length": 52
} |
HPUnit\Metadata\Parser\Registry as MetadataRegistry;
use PHPUnit\Metadata\TestWith;
use PHPUnit\Util\Test;
use ReflectionMethod;
use Throwable;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatib... | Method($className, $methodName);
$dataProvider = $metadataCollection->isDataProvider();
$dataProviderClosure = $metadataCollection->isDataProviderClosure();
$testWith = $metadataCollection->isTestWith();
i | InvalidDataProviderException
*
* @return ?array<ProvidedData>
*/
public function providedData(string $className, string $methodName): ?array
{
$metadataCollection = MetadataRegistry::parser()->for | {
"filepath": "src/Metadata/Api/DataProvider.php",
"language": "php",
"file_size": 17940,
"cut_index": 1331,
"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\Metadata\Parser;
use PHPUnit\Metadata\MetadataColle... | am non-empty-string $methodName
*/
public function forMethod(string $className, string $methodName): MetadataCollection;
/**
* @param class-string $className
* @param non-empty-string $methodName
*/
public function forC | promise for PHPUnit
*/
interface Parser
{
/**
* @param class-string $className
*/
public function forClass(string $className): MetadataCollection;
/**
* @param class-string $className
* @par | {
"filepath": "src/Metadata/Parser/Parser.php",
"language": "php",
"file_size": 1076,
"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\Metadata\Api;
use function array_flip;
use function array_key_exists;
use function array_unique;
use function array_values;
use function assert;
use f... | ise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final class Groups
{
/**
* @var array<string, list<non-empty-string>>
*/
private static array $groupCache = [];
/**
| etadata\Parser\Registry;
use PHPUnit\Metadata\RequiresPhpExtension;
use PHPUnit\Metadata\UsesClass;
use PHPUnit\Metadata\UsesFunction;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility prom | {
"filepath": "src/Metadata/Api/Groups.php",
"language": "php",
"file_size": 3994,
"cut_index": 614,
"middle_length": 229
} |
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\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\F... | PUnit
*/
final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Failed $event): void
{
$this->logger()->testFailed($event);
| covered by the backward compatibility promise for PH | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestFailedSubscriber.php",
"language": "php",
"file_size": 875,
"cut_index": 559,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\... | y promise for PHPUnit
*/
final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Finished $event): void
{
$this->logger() | is class is not covered by the backward compatibilit | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestFinishedSubscriber.php",
"language": "php",
"file_size": 887,
"cut_index": 547,
"middle_length": 52
} |
p 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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\No... | ty promise for PHPUnit
*/
final readonly class TestNoticeTriggeredSubscriber extends Subscriber implements NoticeTriggeredSubscriber
{
public function notify(NoticeTriggered $event): void
{
$this->logger()->testNoticeTriggered($event);
| his class is not covered by the backward compatibili | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestNoticeTriggeredSubscriber.php",
"language": "php",
"file_size": 829,
"cut_index": 516,
"middle_length": 52
} |
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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\PhpDeprecationTriggered;
use PHPUnit\Event\Te... | final readonly class TestPhpDeprecationTriggeredSubscriber extends Subscriber implements PhpDeprecationTriggeredSubscriber
{
public function notify(PhpDeprecationTriggered $event): void
{
$this->logger()->testPhpDeprecationTriggered($event) | the backward compatibility promise for PHPUnit
*/
| {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPhpDeprecationTriggeredSubscriber.php",
"language": "php",
"file_size": 877,
"cut_index": 559,
"middle_length": 52
} |
pes=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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\PhpNoticeTriggered;
u... | r PHPUnit
*/
final readonly class TestPhpNoticeTriggeredSubscriber extends Subscriber implements PhpNoticeTriggeredSubscriber
{
public function notify(PhpNoticeTriggered $event): void
{
$this->logger()->testPhpNoticeTriggered($event);
| not covered by the backward compatibility promise fo | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPhpNoticeTriggeredSubscriber.php",
"language": "php",
"file_size": 847,
"cut_index": 535,
"middle_length": 52
} |
ict_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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\PhpWarningTrigg... | omise for PHPUnit
*/
final readonly class TestPhpWarningTriggeredSubscriber extends Subscriber implements PhpWarningTriggeredSubscriber
{
public function notify(PhpWarningTriggered $event): void
{
$this->logger()->testPhpWarningTriggered($ | lass is not covered by the backward compatibility pr | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPhpWarningTriggeredSubscriber.php",
"language": "php",
"file_size": 853,
"cut_index": 529,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\PhpunitDeprecationTriggered;
use ... | ise for PHPUnit
*/
final readonly class TestPhpunitDeprecationTriggeredSubscriber extends Subscriber implements PhpunitDeprecationTriggeredSubscriber
{
public function notify(PhpunitDeprecationTriggered $event): void
{
$this->logger()->tes | ss is not covered by the backward compatibility prom | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPhpunitDeprecationTriggeredSubscriber.php",
"language": "php",
"file_size": 901,
"cut_index": 547,
"middle_length": 52
} |
ict_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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\PhpunitErrorTri... | y promise for PHPUnit
*/
final readonly class TestPhpunitErrorTriggeredSubscriber extends Subscriber implements PhpunitErrorTriggeredSubscriber
{
public function notify(PhpunitErrorTriggered $event): void
{
$this->logger()->testPhpunitErro | is class is not covered by the backward compatibilit | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPhpunitErrorTriggeredSubscriber.php",
"language": "php",
"file_size": 865,
"cut_index": 529,
"middle_length": 52
} |
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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\PhpunitNoticeTriggered;
use PHPUnit\Event\Tes... | nal readonly class TestPhpunitNoticeTriggeredSubscriber extends Subscriber implements PhpunitNoticeTriggeredSubscriber
{
public function notify(PhpunitNoticeTriggered $event): void
{
$this->logger()->testPhpunitNoticeTriggered($event);
| he backward compatibility promise for PHPUnit
*/
fi | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPhpunitNoticeTriggeredSubscriber.php",
"language": "php",
"file_size": 871,
"cut_index": 559,
"middle_length": 52
} |
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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\PhpunitWarningTriggered;
use PHPUnit\Event\Te... | final readonly class TestPhpunitWarningTriggeredSubscriber extends Subscriber implements PhpunitWarningTriggeredSubscriber
{
public function notify(PhpunitWarningTriggered $event): void
{
$this->logger()->testPhpunitWarningTriggered($event) | the backward compatibility promise for PHPUnit
*/
| {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPhpunitWarningTriggeredSubscriber.php",
"language": "php",
"file_size": 877,
"cut_index": 559,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\PreparationErrored;
use PHPUnit\Event\Test\Prepa... | y class TestPreparationErroredSubscriber extends Subscriber implements PreparationErroredSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(PreparationErrored $event): void
{
$this->logger()->testPre | compatibility promise for PHPUnit
*/
final readonl | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPreparationErroredSubscriber.php",
"language": "php",
"file_size": 937,
"cut_index": 606,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\PreparationFailed;
use PHPUnit\Event\Test\Prepar... | class TestPreparationFailedSubscriber extends Subscriber implements PreparationFailedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(PreparationFailed $event): void
{
$this->logger()->testPrepared | ompatibility promise for PHPUnit
*/
final readonly | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPreparationFailedSubscriber.php",
"language": "php",
"file_size": 932,
"cut_index": 606,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\... | y promise for PHPUnit
*/
final readonly class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Prepared $event): void
{
$this->logger() | is class is not covered by the backward compatibilit | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPreparedSubscriber.php",
"language": "php",
"file_size": 887,
"cut_index": 547,
"middle_length": 52
} |
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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\PrintedUnexpectedOutput;
use PHPUnit\Event\Te... | final readonly class TestPrintedUnexpectedOutputSubscriber extends Subscriber implements PrintedUnexpectedOutputSubscriber
{
public function notify(PrintedUnexpectedOutput $event): void
{
$this->logger()->testPrintedUnexpectedOutput($event) | the backward compatibility promise for PHPUnit
*/
| {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestPrintedUnexpectedOutputSubscriber.php",
"language": "php",
"file_size": 877,
"cut_index": 559,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\TestRunner\ExecutionFinished;
use PHPUnit\Event\TestR... | al readonly class TestRunnerFinishedSubscriber extends Subscriber implements ExecutionFinishedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(ExecutionFinished $event): void
{
$this->logger()->tes | e backward compatibility promise for PHPUnit
*/
fin | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestRunnerFinishedSubscriber.php",
"language": "php",
"file_size": 941,
"cut_index": 606,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\Application\Started;
use PHPUnit\Event... | compatibility promise for PHPUnit
*/
final readonly class TestRunnerStartedSubscriber extends Subscriber implements StartedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Started $event): void
{
| @internal This class is not covered by the backward | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestRunnerStartedSubscriber.php",
"language": "php",
"file_size": 901,
"cut_index": 547,
"middle_length": 52
} |
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\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\S... | PHPUnit
*/
final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Skipped $event): void
{
$this->logger()->testSkipped($ev | t covered by the backward compatibility promise for | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestSkippedSubscriber.php",
"language": "php",
"file_size": 881,
"cut_index": 559,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\... | mpatibility promise for PHPUnit
*/
final readonly class TestSuiteFinishedSubscriber extends Subscriber implements FinishedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Finished $event): void
{
| nternal This class is not covered by the backward co | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestSuiteFinishedSubscriber.php",
"language": "php",
"file_size": 907,
"cut_index": 547,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\... | atibility promise for PHPUnit
*/
final readonly class TestSuiteSkippedSubscriber extends Subscriber implements SkippedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Skipped $event): void
{
$this | ernal This class is not covered by the backward comp | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestSuiteSkippedSubscriber.php",
"language": "php",
"file_size": 901,
"cut_index": 547,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\... | atibility promise for PHPUnit
*/
final readonly class TestSuiteStartedSubscriber extends Subscriber implements StartedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Started $event): void
{
$this | ernal This class is not covered by the backward comp | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestSuiteStartedSubscriber.php",
"language": "php",
"file_size": 901,
"cut_index": 547,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\Warnin... | promise for PHPUnit
*/
final readonly class TestWarningTriggeredSubscriber extends Subscriber implements WarningTriggeredSubscriber
{
public function notify(WarningTriggered $event): void
{
$this->logger()->testWarningTriggered($event);
| s class is not covered by the backward compatibility | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestWarningTriggeredSubscriber.php",
"language": "php",
"file_size": 835,
"cut_index": 520,
"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\Logging\TestDox;
use function sprintf;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
... | ansSerif Pro, Arial, sans-serif;
font-variant-ligatures: common-ligatures;
font-kerning: normal;
margin-left: 2rem;
background-color: #fff;
color: #000;
}
| l>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Test Documentation</title>
<style>
body {
text-rendering: optimizeLegibility;
font-family: Source S | {
"filepath": "src/Logging/TestDox/HtmlRenderer.php",
"language": "php",
"file_size": 3749,
"cut_index": 614,
"middle_length": 229
} |
p;
use function array_splice;
use function array_values;
use function assert;
use function class_exists;
use function explode;
use function gettype;
use function implode;
use function is_bool;
use function is_float;
use function is_int;
use function is_object;
use function is_scalar;
use function is_string;
use functio... | Builder;
use PHPUnit\Event\Facade as EventFacade;
use PHPUnit\Framework\TestCase;
use PHPUnit\Metadata\Parser\Registry as MetadataRegistry;
use PHPUnit\Metadata\TestDox;
use PHPUnit\Metadata\TestDoxFormatter;
use PHPUnit\Util\Color;
use PHPUnit\Util\Export | str_ends_with;
use function str_replace;
use function str_starts_with;
use function strlen;
use function strtolower;
use function substr;
use function trim;
use function ucfirst;
use BackedEnum;
use PHPUnit\Event\Code\TestMethod | {
"filepath": "src/Logging/TestDox/NamePrettifier.php",
"language": "php",
"file_size": 14167,
"cut_index": 921,
"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\Logging\TestDox;
use function sprintf;
/**
* @no-named-arguments Parameter names are not covered ... |
if ($list === []) {
continue;
}
$buffer .= $list[0]->test()->testDox()->prettifiedClassName() . "\n";
foreach ($this->reduce($_tests) as $prettifiedMethodName => $outcome) {
| **
* @param array<class-string, TestResultCollection> $tests
*/
public function render(array $tests): string
{
$buffer = '';
foreach ($tests as $_tests) {
$list = $_tests->asArray(); | {
"filepath": "src/Logging/TestDox/PlainTextRenderer.php",
"language": "php",
"file_size": 2162,
"cut_index": 563,
"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\Logging\TestDox;
use PHPUnit\Event\Code\TestMethod;
use PHPU... | le;
public function __construct(TestMethod $test, TestStatus $status, ?Throwable $throwable)
{
$this->test = $test;
$this->status = $status;
$this->throwable = $throwable;
}
public function test(): TestMeth | PUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class TestResult
{
private TestMethod $test;
private TestStatus $status;
private ?Throwable $throwab | {
"filepath": "src/Logging/TestDox/TestResult/TestResult.php",
"language": "php",
"file_size": 1394,
"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\Logging\TestDox;
use IteratorAggregate;
/**
* @template-im... | sults;
/**
* @param list<TestResult> $testResults
*/
public static function fromArray(array $testResults): self
{
return new self(...$testResults);
}
private function __construct(TestResult ...$testResults)
{
| ernal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class TestResultCollection implements IteratorAggregate
{
/**
* @var list<TestResult>
*/
private array $testRe | {
"filepath": "src/Logging/TestDox/TestResult/TestResultCollection.php",
"language": "php",
"file_size": 1323,
"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\Logging\TestDox;
use function assert;
use Iterator;
/**
* ... |
* @var non-negative-int
*/
private int $position = 0;
public function __construct(TestResultCollection $testResults)
{
$this->testResults = $testResults->asArray();
}
public function rewind(): void
{
$th | ss is not covered by the backward compatibility promise for PHPUnit
*/
final class TestResultCollectionIterator implements Iterator
{
/**
* @var list<TestResult>
*/
private readonly array $testResults;
/** | {
"filepath": "src/Logging/TestDox/TestResult/TestResultCollectionIterator.php",
"language": "php",
"file_size": 1506,
"cut_index": 524,
"middle_length": 229
} |
e function usort;
use PHPUnit\Event\Code\TestMethod;
use PHPUnit\Event\Code\Throwable;
use PHPUnit\Event\Facade;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\ConsideredRisky;
use PHPUnit\Event\Test\DeprecationTriggered;
use PHPUnit\Event\Test\Errored;
use PHPUnit\Event\Test\Failed;
use PHPUnit\Eve... | t\Event\Test\Prepared;
use PHPUnit\Event\Test\Skipped;
use PHPUnit\Event\Test\WarningTriggered;
use PHPUnit\Framework\TestStatus\TestStatus;
use PHPUnit\Logging\TestDox\TestResult as TestDoxTestMethod;
use PHPUnit\TestRunner\IssueFilter;
use ReflectionMeth | ent\Test\PhpNoticeTriggered;
use PHPUnit\Event\Test\PhpunitDeprecationTriggered;
use PHPUnit\Event\Test\PhpunitErrorTriggered;
use PHPUnit\Event\Test\PhpunitWarningTriggered;
use PHPUnit\Event\Test\PhpWarningTriggered;
use PHPUni | {
"filepath": "src/Logging/TestDox/TestResult/TestResultCollector.php",
"language": "php",
"file_size": 11169,
"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\Logging\TestDox;
/**
* @no-named-arguments Parameter names ... | vate TestResultCollector $collector;
public function __construct(TestResultCollector $collector)
{
$this->collector = $collector;
}
protected function collector(): TestResultCollector
{
return $this->collector;
}
} | iber
{
pri | {
"filepath": "src/Logging/TestDox/TestResult/Subscriber/Subscriber.php",
"language": "php",
"file_size": 795,
"cut_index": 524,
"middle_length": 14
} |
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\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\E... | PHPUnit
*/
final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Errored $event): void
{
$this->logger()->testErrored($ev | t covered by the backward compatibility promise for | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestErroredSubscriber.php",
"language": "php",
"file_size": 881,
"cut_index": 559,
"middle_length": 52
} |
that was distributed with this source code.
*/
namespace PHPUnit\Metadata\Api;
use function assert;
use PHPUnit\Framework\TestCase;
use PHPUnit\Metadata\CoversClass;
use PHPUnit\Metadata\CoversClassesThatExtendClass;
use PHPUnit\Metadata\CoversClassesThatImplementInterface;
use PHPUnit\Metadata\CoversFunction;
use P... | stianBergmann\CodeCoverage\Test\Target\Target;
use SebastianBergmann\CodeCoverage\Test\Target\TargetCollection;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not | \UsesClassesThatExtendClass;
use PHPUnit\Metadata\UsesClassesThatImplementInterface;
use PHPUnit\Metadata\UsesFunction;
use PHPUnit\Metadata\UsesMethod;
use PHPUnit\Metadata\UsesNamespace;
use PHPUnit\Metadata\UsesTrait;
use Seba | {
"filepath": "src/Metadata/Api/CodeCoverage.php",
"language": "php",
"file_size": 5336,
"cut_index": 716,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Metadata\Api;
use function assert;
use function class_exists;
use function in_array;
use function strtolower;
use PHPUnit\Framework\TestCase;
use PHPUnit\Metadata\After;
use PHPUnit\Metadata\AfterClass;
use PHPUnit\Metadata\Before;
use PHPUnit\Metadata... | the backward compatibility promise for PHPUnit
*
* @phpstan-type HookMethodsByType array{beforeClass: HookMethodCollection, before: HookMethodCollection, preCondition: HookMethodCollection, postCondition: HookMethodCollection, after: HookMethodCollectio | n;
use PHPUnit\Util\Reflection;
use ReflectionClass;
use ReflectionMethod;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by | {
"filepath": "src/Metadata/Api/HookMethods.php",
"language": "php",
"file_size": 5856,
"cut_index": 716,
"middle_length": 229
} |
function array_key_exists;
use function assert;
use function extension_loaded;
use function function_exists;
use function in_array;
use function ini_get;
use function method_exists;
use function phpversion;
use function preg_match;
use function sprintf;
use function substr_count;
use PHPUnit\Event\Facade;
use PHPUnit\M... | t\Metadata\RequiresSetting;
use PHPUnit\Metadata\Version\ComparisonRequirement;
use PHPUnit\Metadata\Version\Requirement;
use PHPUnit\Runner\Version;
use PHPUnit\TextUI\Configuration\Registry as ConfigurationRegistry;
/**
* @no-named-arguments Parameter | tem;
use PHPUnit\Metadata\RequiresOperatingSystemFamily;
use PHPUnit\Metadata\RequiresPhp;
use PHPUnit\Metadata\RequiresPhpExtension;
use PHPUnit\Metadata\RequiresPhpunit;
use PHPUnit\Metadata\RequiresPhpunitExtension;
use PHPUni | {
"filepath": "src/Metadata/Api/Requirements.php",
"language": "php",
"file_size": 9291,
"cut_index": 921,
"middle_length": 229
} |
_replace;
use function trim;
use DOMDocument;
use DOMElement;
use PHPUnit\Event\Code\Test;
use PHPUnit\Event\Code\TestMethod;
use PHPUnit\Event\Facade;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Telemetry\HRTime;
use PHPUnit\Event\Telemetry\Info;
use PHPUnit\Event\Test\Errored;
use PHPUnit\Event\Test... | ameter 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 class JunitXmlLogger
{
private readonly Printer $printer;
private D | xpectedOutput;
use PHPUnit\Event\Test\Skipped;
use PHPUnit\Event\TestSuite\Skipped as TestSuiteSkipped;
use PHPUnit\Event\TestSuite\Started;
use PHPUnit\TextUI\Output\Printer;
use PHPUnit\Util\Xml;
/**
* @no-named-arguments Par | {
"filepath": "src/Logging/JUnit/JunitXmlLogger.php",
"language": "php",
"file_size": 15348,
"cut_index": 921,
"middle_length": 229
} |
ict_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\Logging\JUnit;
use PHPUnit\Event\InvalidArgumentException;
use PH... | ity promise for PHPUnit
*/
final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Failed $event): void
{
$this->logger()->te | This class is not covered by the backward compatibil | {
"filepath": "src/Logging/JUnit/Subscriber/TestFailedSubscriber.php",
"language": "php",
"file_size": 863,
"cut_index": 529,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Logging\JUnit;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\MarkedIncomplete;
use PHPUnit\Event\Test\MarkedIncompleteSub... | edIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(MarkedIncomplete $event): void
{
$this->logger()->testMarkedIncomplete($event); | romise for PHPUnit
*/
final readonly class TestMark | {
"filepath": "src/Logging/JUnit/Subscriber/TestMarkedIncompleteSubscriber.php",
"language": "php",
"file_size": 923,
"cut_index": 606,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Logging\JUnit;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\PreparationFailed;
use PHPUnit\Event\Test\PreparationFailedS... | eparationFailedSubscriber extends Subscriber implements PreparationFailedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(PreparationFailed $event): void
{
$this->logger()->testPreparationFailed(); | promise for PHPUnit
*/
final readonly class TestPr | {
"filepath": "src/Logging/JUnit/Subscriber/TestPreparationFailedSubscriber.php",
"language": "php",
"file_size": 923,
"cut_index": 606,
"middle_length": 52
} |
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\Logging\JUnit;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\Prepared;
use... | /
final readonly class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Prepared $event): void
{
$this->logger()->testPrepared();
}
| by the backward compatibility promise for PHPUnit
* | {
"filepath": "src/Logging/JUnit/Subscriber/TestPreparedSubscriber.php",
"language": "php",
"file_size": 869,
"cut_index": 559,
"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\Logging\JUnit;
use PHPUnit\Event\TestRunner\Execution... | ility promise for PHPUnit
*/
final readonly class TestRunnerExecutionFinishedSubscriber extends Subscriber implements ExecutionFinishedSubscriber
{
public function notify(ExecutionFinished $event): void
{
$this->logger()->flush();
}
}
| l This class is not covered by the backward compatib | {
"filepath": "src/Logging/JUnit/Subscriber/TestRunnerExecutionFinishedSubscriber.php",
"language": "php",
"file_size": 825,
"cut_index": 517,
"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\Logging\JUnit;
use PHPUnit\Event\TestSuite\Finishe... | the backward compatibility promise for PHPUnit
*/
final readonly class TestSuiteFinishedSubscriber extends Subscriber implements FinishedSubscriber
{
public function notify(Finished $event): void
{
$this->logger()->testSuiteFinished();
| ot covered by | {
"filepath": "src/Logging/JUnit/Subscriber/TestSuiteFinishedSubscriber.php",
"language": "php",
"file_size": 789,
"cut_index": 514,
"middle_length": 14
} |
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\Logging\JUnit;
use PHPUnit\Event\TestSuite\Started... | e backward compatibility promise for PHPUnit
*/
final readonly class TestSuiteStartedSubscriber extends Subscriber implements StartedSubscriber
{
public function notify(Started $event): void
{
$this->logger()->testSuiteStarted($event);
| covered by th | {
"filepath": "src/Logging/JUnit/Subscriber/TestSuiteStartedSubscriber.php",
"language": "php",
"file_size": 789,
"cut_index": 514,
"middle_length": 14
} |
?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\Logging\OpenTestReporting;
use PHPUnit\Event\Inva... | stMethodErroredSubscriber extends Subscriber implements AfterLastTestMethodErroredSubscriberInterface
{
/**
* @throws InvalidArgumentException
*/
public function notify(AfterLastTestMethodErrored $event): void
{
$this->logger( | 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
*/
final readonly class AfterLastTe | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/AfterLastTestMethodErroredSubscriber.php",
"language": "php",
"file_size": 1032,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\Inva... | rstTestMethodFailedSubscriber extends Subscriber implements BeforeFirstTestMethodFailedSubscriberInterface
{
/**
* @throws InvalidArgumentException
*/
public function notify(BeforeFirstTestMethodFailed $event): void
{
$this->l | * @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
*/
final readonly class BeforeFi | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/BeforeFirstTestMethodFailedSubscriber.php",
"language": "php",
"file_size": 1037,
"cut_index": 513,
"middle_length": 229
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Logging\OpenTestReporting;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\MarkedIncomplete;
use PHPUnit\Event\Test\MarkedI... | ass TestAbortedSubscriber extends Subscriber implements MarkedIncompleteSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(MarkedIncomplete $event): void
{
$this->logger()->markTestIncomplete($event) | patibility promise for PHPUnit
*/
final readonly cl | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestAbortedSubscriber.php",
"language": "php",
"file_size": 924,
"cut_index": 606,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\Inv... | MethodFailedSubscriber extends Subscriber implements AfterLastTestMethodFailedSubscriberInterface
{
/**
* @throws InvalidArgumentException
*/
public function notify(AfterLastTestMethodFailed $event): void
{
$this->logger()->pa | -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
*/
final readonly class AfterLastTest | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/AfterLastTestMethodFailedSubscriber.php",
"language": "php",
"file_size": 1025,
"cut_index": 512,
"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\Metadata\Api;
use function assert;
use PHPUnit\Framework\ExecutionOrderDe... | @param non-empty-string $methodName
*
* @return list<ExecutionOrderDependency>
*/
public static function dependencies(string $className, string $methodName): array
{
$dependencies = [];
foreach (Registry::parser()-> | ckward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class Dependencies
{
/**
* @param class-string $className
* | {
"filepath": "src/Metadata/Api/Dependencies.php",
"language": "php",
"file_size": 1677,
"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\Logging;
use const FILE_APPEND;
use const LOCK_EX;
use const PHP_EOL;
use... | only class EventLogger implements Tracer
{
private string $path;
private bool $includeTelemetryInfo;
public function __construct(string $path, bool $includeTelemetryInfo)
{
$this->path = $path;
$this->includ | acer\Tracer;
/**
* @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
*/
final read | {
"filepath": "src/Logging/EventLogger.php",
"language": "php",
"file_size": 1956,
"cut_index": 537,
"middle_length": 229
} |
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\Logging\JUnit;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\Finished;
use... | /
final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Finished $event): void
{
$this->logger()->testFinished($event);
| by the backward compatibility promise for PHPUnit
* | {
"filepath": "src/Logging/JUnit/Subscriber/TestFinishedSubscriber.php",
"language": "php",
"file_size": 875,
"cut_index": 559,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Logging\JUnit;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\PreparationStarted;
use PHPUnit\Event\Test\PreparationStarte... | PreparationStartedSubscriber extends Subscriber implements PreparationStartedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(PreparationStarted $event): void
{
$this->logger()->testPreparationStar | ty promise for PHPUnit
*/
final readonly class Test | {
"filepath": "src/Logging/JUnit/Subscriber/TestPreparationStartedSubscriber.php",
"language": "php",
"file_size": 935,
"cut_index": 606,
"middle_length": 52
} |
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\Logging\JUnit;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\Skipped;
use ... | final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Skipped $event): void
{
$this->logger()->testSkipped($event);
}
| the backward compatibility promise for PHPUnit
*/
| {
"filepath": "src/Logging/JUnit/Subscriber/TestSkippedSubscriber.php",
"language": "php",
"file_size": 869,
"cut_index": 559,
"middle_length": 52
} |
nit\Event\Test\PhpunitNoticeTriggered;
use PHPUnit\Event\Test\PhpunitWarningTriggered;
use PHPUnit\Event\Test\PhpWarningTriggered;
use PHPUnit\Event\Test\PreparationErrored;
use PHPUnit\Event\Test\PreparationFailed;
use PHPUnit\Event\Test\Prepared as TestStarted;
use PHPUnit\Event\Test\PrintedUnexpectedOutput;
use PHPU... | use SebastianBergmann\GitState\State as GitState;
use XMLWriter;
/**
* @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 f | PUnit\Event\TestSuite\Started as TestSuiteStarted;
use PHPUnit\Event\TestSuite\TestSuiteForTestClass;
use PHPUnit\Metadata\Group;
use SebastianBergmann\Environment\Host;
use SebastianBergmann\GitState\Builder as GitStateBuilder;
| {
"filepath": "src/Logging/OpenTestReporting/OtrXmlLogger.php",
"language": "php",
"file_size": 34578,
"cut_index": 2151,
"middle_length": 229
} |
p 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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\Co... | ty promise for PHPUnit
*/
final readonly class TestConsideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber
{
public function notify(ConsideredRisky $event): void
{
$this->logger()->testConsideredRisky($event);
| his class is not covered by the backward compatibili | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestConsideredRiskySubscriber.php",
"language": "php",
"file_size": 829,
"cut_index": 516,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\... | ty promise for PHPUnit
*/
final readonly class TestErrorTriggeredSubscriber extends Subscriber implements ErrorTriggeredSubscriber
{
public function notify(ErrorTriggered $event): void
{
$this->logger()->testErrorTriggered($event);
}
} | his class is not covered by the backward compatibili | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestErrorTriggeredSubscriber.php",
"language": "php",
"file_size": 823,
"cut_index": 514,
"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\Metadata\Api;
/**
* @no-named-arguments Parameter nam... | alue
*/
public function __construct(string $label, array $value)
{
$this->label = $label;
$this->value = $value;
}
/**
* @return non-empty-string
*/
public function label(): string
{
return $t | edData
{
/**
* @var non-empty-string
*/
private string $label;
/**
* @var array<mixed>
*/
private array $value;
/**
* @param non-empty-string $label
* @param array<mixed> $v | {
"filepath": "src/Metadata/Api/ProvidedData.php",
"language": "php",
"file_size": 1144,
"cut_index": 518,
"middle_length": 229
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Logging\JUnit;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\PreparationErrored;
use PHPUnit\Event\Test\PreparationErrore... | PreparationErroredSubscriber extends Subscriber implements PreparationErroredSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(PreparationErrored $event): void
{
$this->logger()->testPreparationErro | ty promise for PHPUnit
*/
final readonly class Test | {
"filepath": "src/Logging/JUnit/Subscriber/TestPreparationErroredSubscriber.php",
"language": "php",
"file_size": 929,
"cut_index": 606,
"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\Logging\JUnit;
use PHPUnit\Event\TestSuite\Skipped... | e backward compatibility promise for PHPUnit
*/
final readonly class TestSuiteSkippedSubscriber extends Subscriber implements SkippedSubscriber
{
public function notify(Skipped $event): void
{
$this->logger()->testSuiteSkipped($event);
| covered by th | {
"filepath": "src/Logging/JUnit/Subscriber/TestSuiteSkippedSubscriber.php",
"language": "php",
"file_size": 789,
"cut_index": 514,
"middle_length": 14
} |
ict_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\Logging\OpenTestReporting;
use PHPUnit\Event\Test\DeprecationTrig... | promise for PHPUnit
*/
final readonly class TestDeprecationTriggeredSubscriber extends Subscriber implements DeprecationTriggeredSubscriber
{
public function notify(DeprecationTriggered $event): void
{
$this->logger()->testDeprecationTrigg | class is not covered by the backward compatibility | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/TestDeprecationTriggeredSubscriber.php",
"language": "php",
"file_size": 859,
"cut_index": 529,
"middle_length": 52
} |
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\Logging\JUnit;
use PHPUnit\Event\InvalidArgumentException;
use PHPUnit\Event\Test\Errored;
use ... | final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber
{
/**
* @throws InvalidArgumentException
*/
public function notify(Errored $event): void
{
$this->logger()->testErrored($event);
}
| the backward compatibility promise for PHPUnit
*/
| {
"filepath": "src/Logging/JUnit/Subscriber/TestErroredSubscriber.php",
"language": "php",
"file_size": 869,
"cut_index": 559,
"middle_length": 52
} |
ict_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\Logging\JUnit;
use PHPUnit\Event\Test\PrintedUnexpectedOutput;
us... | e for PHPUnit
*/
final readonly class TestPrintedUnexpectedOutputSubscriber extends Subscriber implements PrintedUnexpectedOutputSubscriber
{
public function notify(PrintedUnexpectedOutput $event): void
{
$this->logger()->testPrintedUnexpe | is not covered by the backward compatibility promis | {
"filepath": "src/Logging/JUnit/Subscriber/TestPrintedUnexpectedOutputSubscriber.php",
"language": "php",
"file_size": 865,
"cut_index": 529,
"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\Logging\OpenTestReporting;
use PHPUnit\Event\Inva... | eFirstTestMethodErroredSubscriber extends Subscriber implements BeforeFirstTestMethodErroredSubscriberInterface
{
/**
* @throws InvalidArgumentException
*/
public function notify(BeforeFirstTestMethodErrored $event): void
{
$t | *
* @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
*/
final readonly class Befor | {
"filepath": "src/Logging/OpenTestReporting/Subscriber/BeforeFirstTestMethodErroredSubscriber.php",
"language": "php",
"file_size": 1044,
"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\Logging\TestDox;
use PHPUnit\Event\Test\Considered... | se for PHPUnit
*/
final readonly class TestConsideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber
{
public function notify(ConsideredRisky $event): void
{
$this->collector()->testConsideredRisky($event);
}
}
| s is not covered by the backward compatibility promi | {
"filepath": "src/Logging/TestDox/TestResult/Subscriber/TestConsideredRiskySubscriber.php",
"language": "php",
"file_size": 822,
"cut_index": 514,
"middle_length": 52
} |
ict_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\Logging\TestDox;
use PHPUnit\Event\Test\DeprecationTriggered;
use... | r PHPUnit
*/
final readonly class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber
{
public function notify(DeprecationTriggered $event): void
{
$this->collector()->testTriggeredDeprecation($e | not covered by the backward compatibility promise fo | {
"filepath": "src/Logging/TestDox/TestResult/Subscriber/TestTriggeredDeprecationSubscriber.php",
"language": "php",
"file_size": 852,
"cut_index": 529,
"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\Logging\TestDox;
use PHPUnit\Event\Test\NoticeTrig... | se for PHPUnit
*/
final readonly class TestTriggeredNoticeSubscriber extends Subscriber implements NoticeTriggeredSubscriber
{
public function notify(NoticeTriggered $event): void
{
$this->collector()->testTriggeredNotice($event);
}
}
| s is not covered by the backward compatibility promi | {
"filepath": "src/Logging/TestDox/TestResult/Subscriber/TestTriggeredNoticeSubscriber.php",
"language": "php",
"file_size": 822,
"cut_index": 514,
"middle_length": 52
} |
mann\CodeCoverage\Exception as CodeCoverageException;
use SebastianBergmann\CodeCoverage\Filter;
use SebastianBergmann\CodeCoverage\Report\Facade as ReportFacade;
use SebastianBergmann\CodeCoverage\Report\Html\Colors;
use SebastianBergmann\CodeCoverage\Report\Html\CustomCssFile;
use SebastianBergmann\CodeCoverage\Repor... | CoverageVersion;
use SebastianBergmann\Comparator\Comparator;
use SebastianBergmann\Environment\Runtime;
use SebastianBergmann\Timer\NoActiveTimerException;
use SebastianBergmann\Timer\Timer;
/**
* @no-named-arguments Parameter names are not covered by t | ollection;
use SebastianBergmann\CodeCoverage\Test\Target\ValidationFailure;
use SebastianBergmann\CodeCoverage\Test\TestSize;
use SebastianBergmann\CodeCoverage\Test\TestStatus;
use SebastianBergmann\CodeCoverage\Version as Code | {
"filepath": "src/Runner/CodeCoverage.php",
"language": "php",
"file_size": 20749,
"cut_index": 1331,
"middle_length": 229
} |
;
use function assert;
use function count;
use function debug_backtrace;
use function defined;
use function error_reporting;
use function is_callable;
use function preg_match;
use function restore_error_handler;
use function set_error_handler;
use function sprintf;
use PHPUnit\Event;
use PHPUnit\Event\Code\IssueTrigger... | DefaultIssueTriggerResolver;
use PHPUnit\Runner\IssueTriggerResolver\Resolver as IssueTriggerResolver;
use PHPUnit\TextUI\Configuration\Registry as ConfigurationRegistry;
use PHPUnit\TextUI\Configuration\SourceFilter;
use PHPUnit\Util\ExcludeList;
/**
* | Unit\Metadata\IgnoreDeprecations;
use PHPUnit\Metadata\Parser\Registry as MetadataParserRegistry;
use PHPUnit\Runner\Baseline\Baseline;
use PHPUnit\Runner\Baseline\Issue;
use PHPUnit\Runner\IssueTriggerResolver\DefaultResolver as | {
"filepath": "src/Runner/ErrorHandler.php",
"language": "php",
"file_size": 29559,
"cut_index": 1331,
"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\TestRunner;
use PHPUnit\Event\Test\DeprecationTriggered;
use PHPUnit\Event\Test\ErrorTriggered;
use PHPUnit\Event\Test\NoticeTriggered;
use PHPUnit\Ev... | patibility promise for PHPUnit
*/
final readonly class IssueFilter
{
private Source $source;
public function __construct(Source $source)
{
$this->source = $source;
}
public function shouldBeProcessed(DeprecationTriggered|Erro | on\Source;
use PHPUnit\TextUI\Configuration\SourceFilter;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward com | {
"filepath": "src/Runner/IssueFilter.php",
"language": "php",
"file_size": 3744,
"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\Runner;
use const PHP_EOL;
use function getmypid;
use functi... | message): void
{
self::register();
self::$message = $message;
}
public static function resetMessage(): void
{
self::$message = '';
}
private static function register(): void
{
if (self::$regist | ot covered by the backward compatibility promise for PHPUnit
*/
final class ShutdownHandler
{
private static bool $registered = false;
private static string $message = '';
public static function setMessage(string $ | {
"filepath": "src/Runner/ShutdownHandler.php",
"language": "php",
"file_size": 1483,
"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\Runner;
use function array_diff;
use function basename;
use function get_declared_classes;
use function realpath;
use function str_ends_with;
use func... | declaredClasses = [];
/**
* @var array<non-empty-string, list<class-string>>
*/
private static array $fileToClassesMap = [];
/**
* @throws Exception
*
* @return ReflectionClass<TestCase>
*/
public function lo | atibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final class TestSuiteLoader
{
/**
* @var list<class-string>
*/
private static array $ | {
"filepath": "src/Runner/TestSuiteLoader.php",
"language": "php",
"file_size": 4316,
"cut_index": 614,
"middle_length": 229
} |
e function count;
use function in_array;
use function max;
use function shuffle;
use function usort;
use PHPUnit\Framework\DataProviderTestSuite;
use PHPUnit\Framework\Reorderable;
use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\TestSuite;
use PHPUnit\Runner\ResultCache\NullResultCache... | = 1;
public const int ORDER_REVERSED = 2;
public const int ORDER_DEFECTS_FIRST = 3;
public const int ORDER_DURATION_ASCENDING = 4;
public const int ORDER_SIZE_ASCENDING = 5;
public const int ORDER_DURATION_D | r PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final class TestSuiteSorter
{
public const int ORDER_DEFAULT = 0;
public const int ORDER_RANDOMIZED | {
"filepath": "src/Runner/TestSuiteSorter.php",
"language": "php",
"file_size": 10689,
"cut_index": 921,
"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\Runner;
use function array_slice;
use function assert;
use function dirna... | id(): string
{
if (self::$pharVersion !== '') {
return self::$pharVersion;
}
if (self::$version === '') {
$path = dirname(__DIR__, 2);
if ($path === '') {
$path = '.';
| rd compatibility promise for PHPUnit
*/
final class Version
{
private static string $pharVersion = '';
private static string $version = '';
/**
* @return non-empty-string
*/
public static function | {
"filepath": "src/Runner/Version.php",
"language": "php",
"file_size": 1931,
"cut_index": 537,
"middle_length": 229
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.