prefix
stringlengths
512
512
suffix
stringlengths
256
256
middle
stringlengths
14
229
meta
dict
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\Runner\Filter; use function in_array; /** * @no-...
upFilterIterator { /** * @param non-empty-string $id * @param list<non-empty-string> $groupTests */ protected function doAccept(string $id, array $groupTests): bool { return !in_array($id, $groupTests, true); }
/ final class ExcludeGroupFilterIterator extends Gro
{ "filepath": "src/Runner/Filter/ExcludeGroupFilterIterator.php", "language": "php", "file_size": 824, "cut_index": 514, "middle_length": 52 }
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\Runner\Filter; use function assert; use FilterIterator; use Iterator; use PHPUnit\Framework\Test; u...
*/ private array $filters = []; /** * @param list<non-empty-string> $testIds */ public function addTestIdFilter(array $testIds): void { $this->filters[] = [ 'className' => TestIdFilterIterator::class,
class is not covered by the backward compatibility promise for PHPUnit */ final class Factory { /** * @var list<array{className: class-string<RecursiveFilterIterator>, argument: list<non-empty-string>|non-empty-string}>
{ "filepath": "src/Runner/Filter/Factory.php", "language": "php", "file_size": 2690, "cut_index": 563, "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\Runner\Filter; use function array_merge; use function array_push; use function in_array; use PHPUni...
ator extends RecursiveFilterIterator { /** * @var list<non-empty-string> */ private readonly array $groupTests; /** * @param RecursiveIterator<int, Test> $iterator * @param list<non-empty-string> $groups */ p
@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 */ abstract class GroupFilterIter
{ "filepath": "src/Runner/Filter/GroupFilterIterator.php", "language": "php", "file_size": 2080, "cut_index": 563, "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\Runner\Filter; use function in_array; /** * @no-...
upFilterIterator { /** * @param non-empty-string $id * @param list<non-empty-string> $groupTests */ protected function doAccept(string $id, array $groupTests): bool { return in_array($id, $groupTests, true); } }
/ final class IncludeGroupFilterIterator extends Gro
{ "filepath": "src/Runner/Filter/IncludeGroupFilterIterator.php", "language": "php", "file_size": 823, "cut_index": 514, "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\Runner\Filter; use function preg_match; use function sprintf; use functio...
rovider". * * Mirrors the parsing in NameFilterIterator::prepareFilter(): the two must * stay in lockstep so the early skip never disagrees with the final filter. * * @return null|non-empty-string */ public static function
promise for PHPUnit */ final readonly class MethodNameFilterCompiler { /** * Returns null when the filter does not constrain the method name. * Callers should treat null as "cannot prove a mismatch, keep the data p
{ "filepath": "src/Runner/Filter/MethodNameFilterCompiler.php", "language": "php", "file_size": 1777, "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\Runner\Filter; use function end; use function preg_match; use function sprintf; use function substr; use PHPUnit\Framework\Test; use PHPUnit\Framework...
ivate readonly string $regularExpression; private readonly ?int $dataSetMinimum; private readonly ?int $dataSetMaximum; /** * @param RecursiveIterator<int, Test> $iterator * @param non-empty-string $filter */ pub
e for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ abstract class NameFilterIterator extends RecursiveFilterIterator { /** * @var non-empty-string */ pr
{ "filepath": "src/Runner/Filter/NameFilterIterator.php", "language": "php", "file_size": 4470, "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\Runner\Filter; use function in_array; use PHPUnit\Event\TestData\NoDataSe...
nit */ final class TestIdFilterIterator extends RecursiveFilterIterator { /** * @var non-empty-list<non-empty-string> */ private readonly array $testIds; /** * @param RecursiveIterator<int, Test> $iterator * @param non
erator; use RecursiveIterator; /** * @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 PHPU
{ "filepath": "src/Runner/Filter/TestIdFilterIterator.php", "language": "php", "file_size": 1723, "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\Runner\Extension; use const PHP_EOL; use function assert; use function class_exists; use function c...
onBootstrapper { private Configuration $configuration; private Facade $facade; public function __construct(Configuration $configuration, Facade $facade) { $this->configuration = $configuration; $this->facade = $facad
* @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 Extensi
{ "filepath": "src/Runner/Extension/ExtensionBootstrapper.php", "language": "php", "file_size": 2834, "cut_index": 563, "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\Runner\Extension; use PHPUnit\Event\EventFacadeIsSealedException; use PHPUnit\Event\Facade as Event...
= false; private bool $replacesProgressOutput = false; private bool $replacesResultOutput = false; private bool $requiresCodeCoverageCollection = false; /** * @throws EventFacadeIsSealedException * @throws Un
ward compatibility promise for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ExtensionFacade implements Facade { private bool $replacesOutput
{ "filepath": "src/Runner/Extension/ExtensionFacade.php", "language": "php", "file_size": 2604, "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\Runner\Extension; use PHPUnit\Event\EventFacadeIsSealedExcep...
ers): void; /** * @throws EventFacadeIsSealedException * @throws UnknownSubscriberTypeException */ public function registerSubscriber(Subscriber $subscriber): void; /** * @throws EventFacadeIsSealedException */ pu
rd compatibility promise for PHPUnit */ interface Facade { /** * @throws EventFacadeIsSealedException * @throws UnknownSubscriberTypeException */ public function registerSubscribers(Subscriber ...$subscrib
{ "filepath": "src/Runner/Extension/Facade.php", "language": "php", "file_size": 1269, "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\Runner\Extension; use function array_key_exists; use PHPUnit...
{ return new self($parameters); } /** * @param array<string, string> $parameters */ private function __construct(array $parameters) { $this->parameters = $parameters; } public function has(string $na
ParameterCollection { /** * @var array<string, string> */ private array $parameters; /** * @param array<string, string> $parameters */ public static function fromArray(array $parameters): self
{ "filepath": "src/Runner/Extension/ParameterCollection.php", "language": "php", "file_size": 1385, "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\Extension; use function count; use function explode; use function extension_loaded; use function implode; use function is_file; use function sp...
promise for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class PharLoader { /** * @param non-empty-string $directory * * @return list<string> */ public fu
rIoVersion; use PHPUnit\Event; use PHPUnit\Runner\Version; use SebastianBergmann\FileIterator\Facade as FileIteratorFacade; use Throwable; /** * @no-named-arguments Parameter names are not covered by the backward compatibility
{ "filepath": "src/Runner/Extension/PharLoader.php", "language": "php", "file_size": 4846, "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\Phpt; use SebastianBergmann\CodeCoverage\CodeCoverage...
ction bootstrap(?string $codeCoverageCacheDirectory, bool $branchCoverage, bool $pathCoverage): CodeCoverage { $filter = new Filter; $granularity = Granularity::Line; if ($branchCoverage) { $granularity = Granulari
red by the backward compatibility promise for PHPUnit * * @codeCoverageIgnore */ final readonly class CodeCoverageBootstrapper { /** * @param ?non-empty-string $codeCoverageCacheDirectory */ public static fun
{ "filepath": "src/Runner/Phpt/CodeCoverageBootstrapper.php", "language": "php", "file_size": 1438, "cut_index": 524, "middle_length": 229 }
that was distributed with this source code. */ namespace PHPUnit\Runner\Phpt; use const DIRECTORY_SEPARATOR; use function assert; use function dirname; use function explode; use function file; use function file_get_contents; use function is_array; use function is_file; use function is_readable; use function is_strin...
Parser { /** * @param non-empty-string $phptFile * * @throws Exception * * @return array<non-empty-string, string> */ public function parse(string $phptFile): array { $sections = []; $section = '';
re not covered by the backward compatibility promise for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @see https://qa.php.net/phpt_details.php */ final readonly class
{ "filepath": "src/Runner/Phpt/Parser.php", "language": "php", "file_size": 6370, "cut_index": 716, "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\Phpt; use function assert; use function defined; use function dirname; use function file_put_contents; use function str_replace; use function v...
l readonly class Renderer { /** * @param non-empty-string $phptFile * @param non-empty-string $code * * @return non-empty-string */ public function render(string $phptFile, string $code): string { return str_rep
bility promise for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit * * @see https://qa.php.net/phpt_details.php * * @phpstan-import-type CoverageFiles from TestCase */ fina
{ "filepath": "src/Runner/Phpt/Renderer.php", "language": "php", "file_size": 3436, "cut_index": 614, "middle_length": 229 }
realpath; use function sprintf; use function str_contains; use function str_replace; use function str_starts_with; use function strncasecmp; use function substr; use function trim; use function unlink; use function unserialize; use PHPUnit\Event\Code\Phpt; use PHPUnit\Event\Code\ThrowableBuilder; use PHPUnit\Event\Faca...
ork\Test; use PHPUnit\Runner\CodeCoverage; use PHPUnit\Runner\CodeCoverageFileExistsException; use PHPUnit\Runner\Exception; use PHPUnit\TestRunner\TestResult\Facade as TestResultFacade; use PHPUnit\TextUI\Configuration\Registry as ConfigurationRegistry; u
PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\IncompleteTestError; use PHPUnit\Framework\PhptAssertionFailedError; use PHPUnit\Framework\Reorderable; use PHPUnit\Framework\SelfDescribing; use PHPUnit\Framew
{ "filepath": "src/Runner/Phpt/TestCase.php", "language": "php", "file_size": 25998, "cut_index": 1331, "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\Runner\Phpt; use function sprintf; use PHPUnit\Runner\Exception as RunnerException; use RuntimeException; /** * @no-...
n extends RuntimeException implements RunnerException { public function __construct(string $section, string $file) { parent::__construct( sprintf( 'Could not load --%s-- %s for PHPT file', $sectio
/ final class PhptExternalFileCannotBeLoadedExceptio
{ "filepath": "src/Runner/Phpt/Exception/PhptExternalFileCannotBeLoadedException.php", "language": "php", "file_size": 964, "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\Runner\Phpt; use function sprintf; use PHPUnit\Runner\Exception as RunnerException;...
upportedPhptSectionException extends RuntimeException implements RunnerException { public function __construct(string $section) { parent::__construct( sprintf( 'PHPUnit does not support PHPT --%s-- sections',
ompatibility promise for PHPUnit */ final class Uns
{ "filepath": "src/Runner/Phpt/Exception/UnsupportedPhptSectionException.php", "language": "php", "file_size": 912, "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\Runner; use function sprintf; use RuntimeException; /** * @no-named-arguments Parameter names...
tion { public function __construct(string $className, string $file) { parent::__construct( sprintf( 'Class %s cannot be found in %s', $className, $file, ), );
dException extends RuntimeException implements Excep
{ "filepath": "src/Runner/Exception/ClassCannotBeFoundException.php", "language": "php", "file_size": 874, "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\Runner; use function sprintf; use RuntimeException; /** * @no-named-arguments Parameter names are not covered by the backward compatibility ...
string $className, string $file) { parent::__construct( sprintf( 'Class %s declared in %s does not extend PHPUnit\Framework\TestCase', $className, $file, ), );
lements Exception { public function __construct(
{ "filepath": "src/Runner/Exception/ClassDoesNotExtendTestCaseException.php", "language": "php", "file_size": 918, "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\Runner; use function sprintf; use RuntimeException; /** * @no-named-arguments Parameter names...
n { public function __construct(string $className, string $file) { parent::__construct( sprintf( 'Class %s declared in %s is abstract', $className, $file, ), );
ception extends RuntimeException implements Exceptio
{ "filepath": "src/Runner/Exception/ClassIsAbstractException.php", "language": "php", "file_size": 876, "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\Runner; use function sprintf; use RuntimeException; /** * @no-n...
RuntimeException implements Exception { public function __construct(string $directory) { parent::__construct( sprintf( 'Directory "%s" does not exist and could not be created', $directory,
final class DirectoryDoesNotExistException extends
{ "filepath": "src/Runner/Exception/DirectoryDoesNotExistException.php", "language": "php", "file_size": 864, "cut_index": 529, "middle_length": 52 }
are(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 function sprintf; use RuntimeException; /** ...
class FileDoesNotExistException extends RuntimeException implements Exception { public function __construct(string $file) { parent::__construct( sprintf( 'File "%s" does not exist', $file,
nit */ final
{ "filepath": "src/Runner/Exception/FileDoesNotExistException.php", "language": "php", "file_size": 819, "cut_index": 522, "middle_length": 14 }
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\Runner; use function sprintf; use RuntimeException; ...
tion extends RuntimeException implements Exception { public function __construct(string $name) { parent::__construct( sprintf( 'Parameter "%s" does not exist', $name, ), );
r PHPUnit */ final class ParameterDoesNotExistExcep
{ "filepath": "src/Runner/Exception/ParameterDoesNotExistException.php", "language": "php", "file_size": 829, "cut_index": 516, "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\Runner; /** * @no-named-arguments Parameter names are...
-int $priority */ public function __construct(string $methodName, int $priority) { $this->methodName = $methodName; $this->priority = $priority; } /** * @return non-empty-string */ public function metho
/** * @var non-empty-string */ private string $methodName; /** * @var non-negative-int */ private int $priority; /** * @param non-empty-string $methodName * @param non-negative
{ "filepath": "src/Runner/HookMethod/HookMethod.php", "language": "php", "file_size": 1196, "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\Logging\TestDox; use PHPUnit\Event\Test\PhpNoticeTrigger...
se for PHPUnit */ final readonly class TestTriggeredPhpNoticeSubscriber extends Subscriber implements PhpNoticeTriggeredSubscriber { public function notify(PhpNoticeTriggered $event): void { $this->collector()->testTriggeredPhpNotice($even
s is not covered by the backward compatibility promi
{ "filepath": "src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpNoticeSubscriber.php", "language": "php", "file_size": 840, "cut_index": 520, "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\PhpunitErrorTriggered; us...
for PHPUnit */ final readonly class TestTriggeredPhpunitErrorSubscriber extends Subscriber implements PhpunitErrorTriggeredSubscriber { public function notify(PhpunitErrorTriggered $event): void { $this->collector()->testTriggeredPhpunitEr
s not covered by the backward compatibility promise
{ "filepath": "src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitErrorSubscriber.php", "language": "php", "file_size": 858, "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\TestDox; use PHPUnit\Event\Test\PhpunitWarningTriggered; use PHPUnit\Event\Test\Phpunit...
only class TestTriggeredPhpunitWarningSubscriber extends Subscriber implements PhpunitWarningTriggeredSubscriber { public function notify(PhpunitWarningTriggered $event): void { $this->collector()->testTriggeredPhpunitWarning($event); }
ard compatibility promise for PHPUnit */ final read
{ "filepath": "src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitWarningSubscriber.php", "language": "php", "file_size": 870, "cut_index": 559, "middle_length": 52 }
printf; use function str_replace; use function stripos; use PHPUnit\Event\Code\TestMethod; use PHPUnit\Event\Code\Throwable; use PHPUnit\Event\Event; use PHPUnit\Event\Facade; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Telemetry\HRTime; use PHPUnit\Event\Test\BeforeFirstTestMethodErrored; use PHPUnit...
Event\TestSuite\Started as TestSuiteStarted; use PHPUnit\Event\TestSuite\TestSuiteForTestClass; use PHPUnit\Event\TestSuite\TestSuiteForTestMethodWithDataProvider; use PHPUnit\Framework\Exception as FrameworkException; use PHPUnit\TextUI\Output\Printer; /
nt\Test\MarkedIncomplete; use PHPUnit\Event\Test\PreparationStarted; use PHPUnit\Event\Test\Skipped; use PHPUnit\Event\TestSuite\Finished as TestSuiteFinished; use PHPUnit\Event\TestSuite\Skipped as TestSuiteSkipped; use PHPUnit\
{ "filepath": "src/Logging/TeamCity/TeamCityLogger.php", "language": "php", "file_size": 15407, "cut_index": 921, "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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\Errored; u...
*/ final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber { /** * @throws InvalidArgumentException */ public function notify(Errored $event): void { $this->logger()->testErrored($event);
by the backward compatibility promise for PHPUnit
{ "filepath": "src/Logging/TeamCity/Subscriber/TestErroredSubscriber.php", "language": "php", "file_size": 872, "cut_index": 559, "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\TestDox; use PHPUnit\Event\Test\WarningTrigg...
se for PHPUnit */ final readonly class TestTriggeredWarningSubscriber extends Subscriber implements WarningTriggeredSubscriber { public function notify(WarningTriggered $event): void { $this->collector()->testTriggeredWarning($event);
s is not covered by the backward compatibility promi
{ "filepath": "src/Logging/TestDox/TestResult/Subscriber/TestTriggeredWarningSubscriber.php", "language": "php", "file_size": 828, "cut_index": 516, "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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\MarkedIncomplete; use PHPUnit\Event\Test\MarkedIncomplete...
arkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber { /** * @throws InvalidArgumentException */ public function notify(MarkedIncomplete $event): void { $this->logger()->testMarkedIncomplete($even
y promise for PHPUnit */ final readonly class TestM
{ "filepath": "src/Logging/TeamCity/Subscriber/TestMarkedIncompleteSubscriber.php", "language": "php", "file_size": 926, "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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\PreparationErrored; use PHPUnit\Event\Test\PreparationErr...
estPreparationErroredSubscriber extends Subscriber implements PreparationErroredSubscriber { /** * @throws InvalidArgumentException */ public function notify(PreparationErrored $event): void { $this->logger()->testPreparationE
ility promise for PHPUnit */ final readonly class T
{ "filepath": "src/Logging/TeamCity/Subscriber/TestPreparationErroredSubscriber.php", "language": "php", "file_size": 932, "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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\Skipped; u...
*/ final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber { /** * @throws InvalidArgumentException */ public function notify(Skipped $event): void { $this->logger()->testSkipped($event);
by the backward compatibility promise for PHPUnit
{ "filepath": "src/Logging/TeamCity/Subscriber/TestSkippedSubscriber.php", "language": "php", "file_size": 872, "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\TeamCity; 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($event
ot covered by
{ "filepath": "src/Logging/TeamCity/Subscriber/TestSuiteFinishedSubscriber.php", "language": "php", "file_size": 798, "cut_index": 517, "middle_length": 14 }
* 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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Tes...
promise for PHPUnit */ final readonly class TestSuiteSkippedSubscriber extends Subscriber implements SkippedSubscriber { /** * @throws InvalidArgumentException */ public function notify(Skipped $event): void { $this->logger(
s class is not covered by the backward compatibility
{ "filepath": "src/Logging/TeamCity/Subscriber/TestSuiteSkippedSubscriber.php", "language": "php", "file_size": 892, "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\Logging\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\BeforeFirstTestMethodFailed; use ...
ise for PHPUnit */ final readonly class TestSuiteBeforeFirstTestMethodFailedSubscriber extends Subscriber implements BeforeFirstTestMethodFailedSubscriber { /** * @throws InvalidArgumentException */ public function notify(BeforeFirstTest
ss is not covered by the backward compatibility prom
{ "filepath": "src/Logging/TeamCity/Subscriber/TestSuiteBeforeFirstTestMethodFailedSubscriber.php", "language": "php", "file_size": 993, "cut_index": 582, "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\TestDox; use PHPUnit\Event\Test\MarkedIncomp...
se for PHPUnit */ final readonly class TestMarkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber { public function notify(MarkedIncomplete $event): void { $this->collector()->testMarkedIncomplete($event);
s is not covered by the backward compatibility promi
{ "filepath": "src/Logging/TestDox/TestResult/Subscriber/TestMarkedIncompleteSubscriber.php", "language": "php", "file_size": 828, "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\TestDox; use PHPUnit\Event\Test\PhpDeprecationTriggered; use PHPUnit\Event\Test\PhpDepr...
only class TestTriggeredPhpDeprecationSubscriber extends Subscriber implements PhpDeprecationTriggeredSubscriber { public function notify(PhpDeprecationTriggered $event): void { $this->collector()->testTriggeredPhpDeprecation($event); }
ard compatibility promise for PHPUnit */ final read
{ "filepath": "src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpDeprecationSubscriber.php", "language": "php", "file_size": 870, "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\TestDox; use PHPUnit\Event\Test\PhpunitDeprecationTriggered; use PHPUnit\Ev...
PUnit */ final readonly class TestTriggeredPhpunitDeprecationSubscriber extends Subscriber implements PhpunitDeprecationTriggeredSubscriber { public function notify(PhpunitDeprecationTriggered $event): void { $this->collector()->testTrigge
covered by the backward compatibility promise for PH
{ "filepath": "src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php", "language": "php", "file_size": 894, "cut_index": 547, "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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\ConsideredRisky; use PHPUnit\Event\Test\ConsideredRiskySu...
sideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber { /** * @throws InvalidArgumentException */ public function notify(ConsideredRisky $event): void { $this->logger()->testConsideredRisky($event);
promise for PHPUnit */ final readonly class TestCon
{ "filepath": "src/Logging/TeamCity/Subscriber/TestConsideredRiskySubscriber.php", "language": "php", "file_size": 920, "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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\Finished; ...
*/ final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber { /** * @throws InvalidArgumentException */ public function notify(Finished $event): void { $this->logger()->testFinished($event
ed by the backward compatibility promise for PHPUnit
{ "filepath": "src/Logging/TeamCity/Subscriber/TestFinishedSubscriber.php", "language": "php", "file_size": 878, "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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\PreparationStarted; use PHPUnit\Event\Test\PreparationSta...
estPreparationStartedSubscriber extends Subscriber implements PreparationStartedSubscriber { /** * @throws InvalidArgumentException */ public function notify(PreparationStarted $event): void { $this->logger()->testPreparationS
ility promise for PHPUnit */ final readonly class T
{ "filepath": "src/Logging/TeamCity/Subscriber/TestPreparationStartedSubscriber.php", "language": "php", "file_size": 938, "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\TeamCity; use PHPUnit\Event\InvalidArgum...
er implements BeforeFirstTestMethodErroredSubscriber { /** * @throws InvalidArgumentException */ public function notify(BeforeFirstTestMethodErrored $event): void { $this->logger()->beforeFirstTestMethodErrored($event); }
the backward compatibility promise for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteBeforeFirstTestMethodErroredSubscriber extends Subscrib
{ "filepath": "src/Logging/TeamCity/Subscriber/TestSuiteBeforeFirstTestMethodErroredSubscriber.php", "language": "php", "file_size": 999, "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\Logging\TeamCity; use PHPUnit\Event\TestSuite\Star...
the backward compatibility promise for PHPUnit */ final readonly class TestSuiteStartedSubscriber extends Subscriber implements StartedSubscriber { public function notify(Started $event): void { $this->logger()->testSuiteStarted($event);
not covered by
{ "filepath": "src/Logging/TeamCity/Subscriber/TestSuiteStartedSubscriber.php", "language": "php", "file_size": 792, "cut_index": 514, "middle_length": 14 }
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\TestDox; use PHPUnit\Event\Test\PhpWarningTriggered; use PHPUni...
t */ final readonly class TestTriggeredPhpWarningSubscriber extends Subscriber implements PhpWarningTriggeredSubscriber { public function notify(PhpWarningTriggered $event): void { $this->collector()->testTriggeredPhpWarning($event); }
red by the backward compatibility promise for PHPUni
{ "filepath": "src/Logging/TestDox/TestResult/Subscriber/TestTriggeredPhpWarningSubscriber.php", "language": "php", "file_size": 846, "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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use...
bility promise for PHPUnit */ final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber { /** * @throws InvalidArgumentException */ public function notify(Failed $event): void { $this->logger()-
al This class is not covered by the backward compati
{ "filepath": "src/Logging/TeamCity/Subscriber/TestFailedSubscriber.php", "language": "php", "file_size": 866, "cut_index": 529, "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\TeamCity; use PHPUnit\Event\TestRunner\Execu...
atibility promise for PHPUnit */ final readonly class TestRunnerExecutionFinishedSubscriber extends Subscriber implements ExecutionFinishedSubscriber { public function notify(ExecutionFinished $event): void { $this->logger()->flush();
ernal This class is not covered by the backward comp
{ "filepath": "src/Logging/TeamCity/Subscriber/TestRunnerExecutionFinishedSubscriber.php", "language": "php", "file_size": 828, "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\TestDox; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\Finished; u...
*/ final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber { /** * @throws InvalidArgumentException */ public function notify(Finished $event): void { $this->collector()->testFinished($eve
d by the backward compatibility promise for PHPUnit
{ "filepath": "src/Logging/TestDox/TestResult/Subscriber/TestFinishedSubscriber.php", "language": "php", "file_size": 880, "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\TeamCity; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\PreparationFailed; use PHPUnit\Event\Test\PreparationFail...
tPreparationFailedSubscriber extends Subscriber implements PreparationFailedSubscriber { /** * @throws InvalidArgumentException */ public function notify(PreparationFailed $event): void { $this->logger()->testPreparationFailed
ity promise for PHPUnit */ final readonly class Tes
{ "filepath": "src/Logging/TeamCity/Subscriber/TestPreparationFailedSubscriber.php", "language": "php", "file_size": 926, "cut_index": 606, "middle_length": 52 }
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\Runner; use function getenv; use function is_string; use function putenv; /** * @no-named-argumen...
ivate string $from; /** * @var non-empty-string */ private string $name; private null|string $value; /** * @param non-empty-string $name * * @return array{0: self, 1: self} */ public static function creat
nly class BackedUpEnvironmentVariable { private const string FROM_GETENV = 'getenv'; private const string FROM_SUPERGLOBAL = 'superglobal'; /** * @var self::FROM_GETENV|self::FROM_SUPERGLOBAL */ pr
{ "filepath": "src/Runner/BackedUpEnvironmentVariable.php", "language": "php", "file_size": 2463, "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\Runner\IssueTriggerResolver; /** * @no-named-argument...
resolve(array $trace, string $message): Resolution { $callee = null; if (isset($trace[0]['file']) && $trace[0]['file'] !== '') { $callee = $trace[0]['file']; } $caller = null; if (isset($trace[1]['
DefaultResolver implements Resolver { /** * @param list<array{function: string, line?: int, file?: string, class?: class-string, type?: '->'|'::', args?: list<mixed>, object?: object}> $trace */ public function
{ "filepath": "src/Runner/IssueTriggerResolver/DefaultResolver.php", "language": "php", "file_size": 1151, "cut_index": 518, "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\Runner\ResultCache; use PHPUnit\Event\Test\MarkedInc...
omise for PHPUnit */ final readonly class TestMarkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber { public function notify(MarkedIncomplete $event): void { $this->handler()->testMarkedIncomplete($event);
lass is not covered by the backward compatibility pr
{ "filepath": "src/Runner/ResultCache/Subscriber/TestMarkedIncompleteSubscriber.php", "language": "php", "file_size": 829, "cut_index": 516, "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\Runner\ResultCache; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\Skipped; use PHPUnit\Event\Test\SkippedSubscriber; /**...
extends Subscriber implements SkippedSubscriber { /** * @throws \PHPUnit\Framework\InvalidArgumentException * @throws InvalidArgumentException */ public function notify(Skipped $event): void { $this->handler()->testSkipp
PUnit */ final readonly class TestSkippedSubscriber
{ "filepath": "src/Runner/ResultCache/Subscriber/TestSkippedSubscriber.php", "language": "php", "file_size": 934, "cut_index": 606, "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\Runner\ResultCache; use PHPUnit\Event\TestSuite\Finished; us...
ackward compatibility promise for PHPUnit */ final readonly class TestSuiteFinishedSubscriber extends Subscriber implements FinishedSubscriber { public function notify(Finished $event): void { $this->handler()->testSuiteFinished(); } }
vered by the b
{ "filepath": "src/Runner/ResultCache/Subscriber/TestSuiteFinishedSubscriber.php", "language": "php", "file_size": 795, "cut_index": 524, "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\Runner\ResultCache; use PHPUnit\Event\TestSuite\St...
by the backward compatibility promise for PHPUnit */ final readonly class TestSuiteStartedSubscriber extends Subscriber implements StartedSubscriber { public function notify(Started $event): void { $this->handler()->testSuiteStarted();
s not covered
{ "filepath": "src/Runner/ResultCache/Subscriber/TestSuiteStartedSubscriber.php", "language": "php", "file_size": 789, "cut_index": 514, "middle_length": 14 }
\Event\Test\Failed; use PHPUnit\Event\Test\Finished; use PHPUnit\Event\Test\MarkedIncomplete; use PHPUnit\Event\Test\NoticeTriggered; use PHPUnit\Event\Test\PhpDeprecationTriggered; use PHPUnit\Event\Test\PhpNoticeTriggered; use PHPUnit\Event\Test\PhpunitDeprecationTriggered; use PHPUnit\Event\Test\PhpunitErrorTriggere...
rIssueErrorTriggered; use PHPUnit\Event\TestRunner\ExecutionStarted; use PHPUnit\Event\TestRunner\Issue\DeprecationTriggered as TestRunnerIssueDeprecationTriggered; use PHPUnit\Event\TestRunner\Issue\NoticeTriggered as TestRunnerIssueNoticeTriggered; use P
PHPUnit\Event\Test\WarningTriggered; use PHPUnit\Event\TestRunner\ChildProcessErrored; use PHPUnit\Event\TestRunner\DeprecationTriggered as TestRunnerDeprecationTriggered; use PHPUnit\Event\TestRunner\ErrorTriggered as TestRunne
{ "filepath": "src/Runner/TestResult/Collector.php", "language": "php", "file_size": 23777, "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\TestResult; use function array_filter; use function count; use function str_contains; use PHPUnit\Event\Facade as EventFacade; use PHPUnit\...
*/ final class Facade { private static ?Collector $collector = null; private static bool $interrupted = false; public static function init(): void { self::collector(); } public static function interrupt(): void {
as ConfigurationRegistry; /** * @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/Runner/TestResult/Facade.php", "language": "php", "file_size": 4519, "cut_index": 614, "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\TestResult\Issues; use function array_values; use function count; use PHPUnit\Event\Code\Test; /** * @no-named-arguments Parameter names ...
n; /** * @var non-empty-array<non-empty-string, array{test: Test, count: int}> */ private array $triggeringTests; /** * @var ?non-empty-string */ private ?string $stackTrace; /** * @param non-empty-string $f
* @var non-empty-string */ private readonly string $file; /** * @var positive-int */ private readonly int $line; /** * @var non-empty-string */ private readonly string $descriptio
{ "filepath": "src/Runner/TestResult/Issue.php", "language": "php", "file_size": 3523, "cut_index": 614, "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\TestResult; use function array_merge; use function assert; use function explode; use function in_array; use PHPUnit\Event\Code\TestMethod; ...
ance = null; /** * @var list<class-string> */ private array $passedTestClasses = []; /** * @var array<string,array{returnValue: mixed, size: TestSize}> */ private array $passedTestMethods = []; public static funct
eter 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 PassedTests { private static ?self $inst
{ "filepath": "src/Runner/TestResult/PassedTests.php", "language": "php", "file_size": 3531, "cut_index": 614, "middle_length": 229 }
nit\Event\Test\PhpunitNoticeTriggered; use PHPUnit\Event\Test\PhpunitWarningTriggered; use PHPUnit\Event\Test\Skipped as TestSkipped; use PHPUnit\Event\TestRunner\DeprecationTriggered as TestRunnerDeprecationTriggered; use PHPUnit\Event\TestRunner\ErrorTriggered as TestRunnerIssueErrorTriggered; use PHPUnit\Event\TestR...
PHPUnit\Event\TestRunner\PhpNoticeTriggered as TestRunnerIssuePhpNoticeTriggered; use PHPUnit\Event\TestRunner\PhpWarningTriggered as TestRunnerIssuePhpWarningTriggered; use PHPUnit\Event\TestRunner\WarningTriggered as TestRunnerWarningTriggered; use PHPU
e\WarningTriggered as TestRunnerIssueWarningTriggered; use PHPUnit\Event\TestRunner\NoticeTriggered as TestRunnerNoticeTriggered; use PHPUnit\Event\TestRunner\PhpDeprecationTriggered as TestRunnerIssuePhpDeprecationTriggered; use
{ "filepath": "src/Runner/TestResult/TestResult.php", "language": "php", "file_size": 27483, "cut_index": 1331, "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\TestRunner\TestResult; use PHPUnit\Event\Test\AfterLastTestMethodErrored; use PHPUn...
r PHPUnit */ final readonly class AfterTestClassMethodErroredSubscriber extends Subscriber implements AfterLastTestMethodErroredSubscriber { public function notify(AfterLastTestMethodErrored $event): void { $this->collector()->afterTestCla
not covered by the backward compatibility promise fo
{ "filepath": "src/Runner/TestResult/Subscriber/AfterTestClassMethodErroredSubscriber.php", "language": "php", "file_size": 888, "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\TestRunner\TestResult; use PHPUnit\Event\Test\AfterLastTestMethodFailed; use PHPUnit\Event\Test...
final readonly class AfterTestClassMethodFailedSubscriber extends Subscriber implements AfterLastTestMethodFailedSubscriber { public function notify(AfterLastTestMethodFailed $event): void { $this->collector()->afterTestClassMethodFailed($e
the backward compatibility promise for PHPUnit */
{ "filepath": "src/Runner/TestResult/Subscriber/AfterTestClassMethodFailedSubscriber.php", "language": "php", "file_size": 882, "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\TestRunner\TestResult; use PHPUnit\Event\Test\BeforeFirstTestMethodErrored; use PHP...
e for PHPUnit */ final readonly class BeforeTestClassMethodErroredSubscriber extends Subscriber implements BeforeFirstTestMethodErroredSubscriber { public function notify(BeforeFirstTestMethodErrored $event): void { $this->collector()->bef
is not covered by the backward compatibility promis
{ "filepath": "src/Runner/TestResult/Subscriber/BeforeTestClassMethodErroredSubscriber.php", "language": "php", "file_size": 898, "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\TestRunner\TestResult; use PHPUnit\Event\Test\BeforeFirstTestMethodFailed; use PHPU...
for PHPUnit */ final readonly class BeforeTestClassMethodFailedSubscriber extends Subscriber implements BeforeFirstTestMethodFailedSubscriber { public function notify(BeforeFirstTestMethodFailed $event): void { $this->collector()->beforeTe
s not covered by the backward compatibility promise
{ "filepath": "src/Runner/TestResult/Subscriber/BeforeTestClassMethodFailedSubscriber.php", "language": "php", "file_size": 892, "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\TestRunner\TestResult; use PHPUnit\Event\TestRunne...
class ChildProcessErroredSubscriber extends Subscriber implements \PHPUnit\Event\TestRunner\ChildProcessErroredSubscriber { public function notify(ChildProcessErrored $event): void { $this->collector()->childProcessErrored($event); } }
ompatibility promise for PHPUnit */ final readonly
{ "filepath": "src/Runner/TestResult/Subscriber/ChildProcessErroredSubscriber.php", "language": "php", "file_size": 822, "cut_index": 514, "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\TestRunner\TestResult; use PHPUnit\Event\TestRunner\ExecutionStarted; use PHPUnit\E...
ackward compatibility promise for PHPUnit */ final readonly class ExecutionStartedSubscriber extends Subscriber implements TestRunnerExecutionStartedSubscriber { public function notify(ExecutionStarted $event): void { $this->collector()->e
t * * @internal This class is not covered by the b
{ "filepath": "src/Runner/TestResult/Subscriber/ExecutionStartedSubscriber.php", "language": "php", "file_size": 888, "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\Runner\Baseline; use PHPUnit\Event\Facade; use PHPUnit\Event\Test\DeprecationTriggered; use PHPUnit\Event\Test\NoticeTriggered; use PHPUnit\Event\Test...
ass is not covered by the backward compatibility promise for PHPUnit */ final readonly class Generator { private Baseline $baseline; private Source $source; public function __construct(Facade $facade, Source $source) { $facade->re
eption; use PHPUnit\TextUI\Configuration\Source; use PHPUnit\TextUI\Configuration\SourceFilter; /** * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit * * @internal This cl
{ "filepath": "src/Runner/Baseline/Generator.php", "language": "php", "file_size": 3773, "cut_index": 614, "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\Baseline; use const DIRECTORY_SEPARATOR; use function assert; use function dirname; use function is_file; use function realpath; use function s...
-empty-string $baselineFile * * @throws CannotLoadBaselineException */ public function read(string $baselineFile): Baseline { if (!is_file($baselineFile)) { throw new CannotLoadBaselineException( s
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 Reader { /** * @param non
{ "filepath": "src/Runner/Baseline/Reader.php", "language": "php", "file_size": 3857, "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\Runner\Baseline; use function dirname; use function file_put_contents; use function is_dir; use fun...
write(string $baselineFile, Baseline $baseline): void { $normalizedBaselineFile = realpath(dirname($baselineFile)); if ($normalizedBaselineFile === false || !is_dir($normalizedBaselineFile)) { throw new CannotWriteBaselineE
not covered by the backward compatibility promise for PHPUnit */ final readonly class Writer { /** * @param non-empty-string $baselineFile * * @throws CannotWriteBaselineException */ public function
{ "filepath": "src/Runner/Baseline/Writer.php", "language": "php", "file_size": 2408, "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\Runner\Baseline; use PHPUnit\Event\Test\DeprecationTriggered; use PHPUnit\Event\Test\DeprecationTriggeredSubscriber; u...
it */ final readonly class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber { /** * @throws FileDoesNotExistException * @throws FileDoesNotHaveLineException */ public function notify(De
ered by the backward compatibility promise for PHPUn
{ "filepath": "src/Runner/Baseline/Subscriber/TestTriggeredDeprecationSubscriber.php", "language": "php", "file_size": 993, "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\Runner\Baseline; use PHPUnit\Event\Test\PhpDepre...
precationTriggeredSubscriber { /** * @throws FileDoesNotExistException * @throws FileDoesNotHaveLineException */ public function notify(PhpDeprecationTriggered $event): void { $this->generator()->testTriggeredIssue($event
ward compatibility promise for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class TestTriggeredPhpDeprecationSubscriber extends Subscriber implements PhpDe
{ "filepath": "src/Runner/Baseline/Subscriber/TestTriggeredPhpDeprecationSubscriber.php", "language": "php", "file_size": 1008, "cut_index": 512, "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\Runner\Baseline; use PHPUnit\Event\Test\PhpNoticeTriggered; use PHPUnit\Event\Test\PhpNoticeTriggeredSubscriber; use P...
*/ final readonly class TestTriggeredPhpNoticeSubscriber extends Subscriber implements PhpNoticeTriggeredSubscriber { /** * @throws FileDoesNotExistException * @throws FileDoesNotHaveLineException */ public function notify(PhpNoticeT
by the backward compatibility promise for PHPUnit
{ "filepath": "src/Runner/Baseline/Subscriber/TestTriggeredPhpNoticeSubscriber.php", "language": "php", "file_size": 983, "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\Runner\IssueTriggerResolver; /** * @no-named-arguments Para...
$caller) { $this->callee = $callee; $this->caller = $caller; } /** * @phpstan-assert-if-true !null $this->callee */ public function hasCallee(): bool { return $this->callee !== null; } /**
/** * @var ?non-empty-string */ private ?string $caller; /** * @param ?non-empty-string $callee * @param ?non-empty-string $caller */ public function __construct(?string $callee, ?string
{ "filepath": "src/Runner/IssueTriggerResolver/Resolution.php", "language": "php", "file_size": 1416, "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\Runner\DeprecationCollector; use PHPUnit\Event\EventFacadeIsSealedException; use PHPUnit\Event\Faca...
ll|Collector|InIsolationCollector $collector = null; private static bool $inIsolation = false; public static function init(): void { self::collector(); } public static function initForIsolation():
rguments 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 class Facade { private static nu
{ "filepath": "src/Runner/DeprecationCollector/Facade.php", "language": "php", "file_size": 2196, "cut_index": 563, "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\Runner\DeprecationCollector; /** * @template T ...
on __construct(Collector|InIsolationCollector $collector) { $this->collector = $collector; } /** * @return T */ protected function collector(): Collector|InIsolationCollector { return $this->collector; } }
ackward compatibility promise for PHPUnit */ abstract class Subscriber { /** * @var T */ private readonly Collector|InIsolationCollector $collector; /** * @param T $collector */ public functi
{ "filepath": "src/Runner/DeprecationCollector/Subscriber/Subscriber.php", "language": "php", "file_size": 998, "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\Runner\DeprecationCollector; use PHPUnit\Event\Test\DeprecationTriggered; use PHPUn...
not covered by the backward compatibility promise for PHPUnit */ final class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber { public function notify(DeprecationTriggered $event): void { $thi
y promise for PHPUnit * * @internal This class is
{ "filepath": "src/Runner/DeprecationCollector/Subscriber/TestTriggeredDeprecationSubscriber.php", "language": "php", "file_size": 913, "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\Runner\ResultCache; use PHPUnit\Framework\TestSta...
stStatus { return TestStatus::unknown(); } public function setTime(ResultCacheId $id, float $time): void { } public function time(ResultCacheId $id): float { return 0; } public function load(): void
ility promise for PHPUnit */ final readonly class NullResultCache implements ResultCache { public function setStatus(ResultCacheId $id, TestStatus $status): void { } public function status(ResultCacheId $id): Te
{ "filepath": "src/Runner/ResultCache/NullResultCache.php", "language": "php", "file_size": 1059, "cut_index": 513, "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\ResultCache; use function round; use PHPUnit\Event\Event; use PHPUnit\Event\Facade; use PHPUnit\Event\Telemetry\HRTime; use PHPUnit\Event\Test\...
* * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class ResultCacheHandler { private readonly ResultCache $cache; private ?HRTime $time = null; private int $testSuite = 0; public functi
HPUnit\Event\Test\Skipped; use PHPUnit\Framework\InvalidArgumentException; use PHPUnit\Framework\TestStatus\TestStatus; /** * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
{ "filepath": "src/Runner/ResultCache/ResultCacheHandler.php", "language": "php", "file_size": 4195, "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\ResultCache; use PHPUnit\Event\Code\Test; use PHPUnit...
f TestMethod) { return new self($test->className() . '::' . $test->name()); } return new self($test->id()); } public static function fromReorderable(Reorderable $reorderable): self { return new self($reorde
PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final readonly class ResultCacheId { public static function fromTest(Test $test): self { if ($test instanceo
{ "filepath": "src/Runner/ResultCache/ResultCacheId.php", "language": "php", "file_size": 1457, "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\Runner\Baseline; use function ksort; use function strcmp; use function usort; /** * @no-named-arg...
f (!isset($this->issues[$issue->file()])) { $this->issues[$issue->file()] = []; } if (!isset($this->issues[$issue->file()][$issue->line()])) { $this->issues[$issue->file()][$issue->line()] = []; } $
lass Baseline { public const int VERSION = 1; /** * @var array<non-empty-string, array<positive-int, list<Issue>>> */ private array $issues = []; public function add(Issue $issue): void { i
{ "filepath": "src/Runner/Baseline/Baseline.php", "language": "php", "file_size": 2030, "cut_index": 563, "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\Runner\Baseline; use function array_fill; use function array_merge; use function array_slice; use f...
pstan-src/blob/1.10.33/src/File/ParentDirectoryRelativePathHelper.php */ final readonly class RelativePathCalculator { /** * @var non-empty-string */ private string $baselineDirectory; /** * @param non-empty-string $baselineDir
ts 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 * * @see Copied from https://github.com/phpstan/ph
{ "filepath": "src/Runner/Baseline/RelativePathCalculator.php", "language": "php", "file_size": 2786, "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\Runner\Baseline; use PHPUnit\Event\Test\NoticeTriggered; use PHPUnit\Event\Test\NoticeTriggeredSubscriber; use PHPUnit...
al readonly class TestTriggeredNoticeSubscriber extends Subscriber implements NoticeTriggeredSubscriber { /** * @throws FileDoesNotExistException * @throws FileDoesNotHaveLineException */ public function notify(NoticeTriggered $event
e backward compatibility promise for PHPUnit */ fin
{ "filepath": "src/Runner/Baseline/Subscriber/TestTriggeredNoticeSubscriber.php", "language": "php", "file_size": 968, "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\Runner\Baseline; use PHPUnit\Event\Test\PhpWarningTriggered; use PHPUnit\Event\Test\PhpWarningTriggeredSubscriber; use...
*/ final readonly class TestTriggeredPhpWarningSubscriber extends Subscriber implements PhpWarningTriggeredSubscriber { /** * @throws FileDoesNotExistException * @throws FileDoesNotHaveLineException */ public function notify(PhpWar
ed by the backward compatibility promise for PHPUnit
{ "filepath": "src/Runner/Baseline/Subscriber/TestTriggeredPhpWarningSubscriber.php", "language": "php", "file_size": 988, "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\Runner\DeprecationCollector; use PHPUnit\Event\Facade; use PHPUnit\Event\...
ns = []; /** * @var list<non-empty-string> */ private array $filteredDeprecations = []; public function __construct(Facade $facade, IssueFilter $issueFilter) { $facade->registerSubscribers( new TestPreparedSu
s class is not covered by the backward compatibility promise for PHPUnit */ final class Collector { private readonly IssueFilter $issueFilter; /** * @var list<non-empty-string> */ private array $deprecatio
{ "filepath": "src/Runner/DeprecationCollector/Collector.php", "language": "php", "file_size": 1852, "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\Runner\DeprecationCollector; use PHPUnit\Event\Test\DeprecationTriggered;...
** * @var list<non-empty-string> */ private array $filteredDeprecations = []; public function __construct(IssueFilter $issueFilter) { $this->issueFilter = $issueFilter; } /** * @return list<non-empty-string>
the backward compatibility promise for PHPUnit */ final class InIsolationCollector { private readonly IssueFilter $issueFilter; /** * @var list<non-empty-string> */ private array $deprecations = []; /
{ "filepath": "src/Runner/DeprecationCollector/InIsolationCollector.php", "language": "php", "file_size": 1577, "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\Runner\ResultCache; use PHPUnit\Framework\TestStatus\TestStatus; /** * @no-named-...
s(ResultCacheId $id, TestStatus $status): void; public function status(ResultCacheId $id): TestStatus; public function setTime(ResultCacheId $id, float $time): void; public function time(ResultCacheId $id): float; public function load()
interface ResultCache { public function setStatu
{ "filepath": "src/Runner/ResultCache/ResultCache.php", "language": "php", "file_size": 903, "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\Runner\ResultCache; use PHPUnit\Event\Test\Conside...
omise for PHPUnit */ final readonly class TestConsideredRiskySubscriber extends Subscriber implements ConsideredRiskySubscriber { public function notify(ConsideredRisky $event): void { $this->handler()->testConsideredRisky($event); } }
lass is not covered by the backward compatibility pr
{ "filepath": "src/Runner/ResultCache/Subscriber/TestConsideredRiskySubscriber.php", "language": "php", "file_size": 823, "cut_index": 514, "middle_length": 52 }
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\Runner; use function array_map; use function usort; /** * @no-named-arguments Parameter names are...
od('setUpBeforeClass', 0), true); } public static function defaultBefore(): self { return new self(new HookMethod('setUp', 0), true); } public static function defaultPreCondition(): self { return new self(new HookM
{ private readonly bool $shouldPrepend; /** * @var non-empty-list<HookMethod> */ private array $hookMethods; public static function defaultBeforeClass(): self { return new self(new HookMeth
{ "filepath": "src/Runner/HookMethod/HookMethodCollection.php", "language": "php", "file_size": 2370, "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\Runner\Baseline; use function sprintf; use PHPUnit\Runner\Exception; use RuntimeExc...
eException extends RuntimeException implements Exception { public function __construct(string $file, int $line) { parent::__construct( sprintf( 'File "%s" does not have line %d', $file,
omise for PHPUnit */ final class FileDoesNotHaveLin
{ "filepath": "src/Runner/Baseline/Exception/FileDoesNotHaveLineException.php", "language": "php", "file_size": 902, "cut_index": 547, "middle_length": 52 }
are(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\DeprecationCollector; use PHPUnit\Event\Test\Prepar...
nal This class is not covered by the backward compatibility promise for PHPUnit */ final class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber { public function notify(Prepared $event): void { $this->collector()->te
t * * @inter
{ "filepath": "src/Runner/DeprecationCollector/Subscriber/TestPreparedSubscriber.php", "language": "php", "file_size": 814, "cut_index": 522, "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\Runner\ResultCache; /** * @no-named-arguments P...
riber { private ResultCacheHandler $handler; public function __construct(ResultCacheHandler $handler) { $this->handler = $handler; } protected function handler(): ResultCacheHandler { return $this->handler; } }
ly class Subsc
{ "filepath": "src/Runner/ResultCache/Subscriber/Subscriber.php", "language": "php", "file_size": 783, "cut_index": 512, "middle_length": 14 }
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\Baseline; use const FILE_IGNORE_NEW_LINES; use function assert; use function file; use function is_file; use function sha1; use PHPUnit\Runner\...
n-empty-string */ private string $hash; /** * @var non-empty-string */ private string $description; /** * @param non-empty-string $file * @param positive-int $line * @param ?non-empty-string $hash
rd compatibility promise for PHPUnit */ final readonly class Issue { /** * @var non-empty-string */ private string $file; /** * @var positive-int */ private int $line; /** * @var no
{ "filepath": "src/Runner/Baseline/Issue.php", "language": "php", "file_size": 3426, "cut_index": 614, "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\ResultCache; use const DIRECTORY_SEPARATOR; use const LOCK_EX; use function dirname; use function file_get_contents; use function file_put_cont...
d compatibility promise for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class DefaultResultCache implements ResultCache { private const int VERSION = 2; priv
use PHPUnit\Framework\TestStatus\TestStatus; use PHPUnit\Runner\DirectoryDoesNotExistException; use PHPUnit\Runner\Exception; use PHPUnit\Util\Filesystem; /** * @no-named-arguments Parameter names are not covered by the backwar
{ "filepath": "src/Runner/ResultCache/DefaultResultCache.php", "language": "php", "file_size": 4343, "cut_index": 614, "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\Runner\ResultCache; use PHPUnit\Event\InvalidArgumentException; use PHPUnit\Event\Test\Finished; use PHPUnit\Event\Test\FinishedSubscriber; /...
ber extends Subscriber implements FinishedSubscriber { /** * @throws \PHPUnit\Framework\InvalidArgumentException * @throws InvalidArgumentException */ public function notify(Finished $event): void { $this->handler()->test
PHPUnit */ final readonly class TestFinishedSubscri
{ "filepath": "src/Runner/ResultCache/Subscriber/TestFinishedSubscriber.php", "language": "php", "file_size": 940, "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\Runner\Baseline; use PHPUnit\Event\Test\WarningTriggered; use PHPUnit\Event\Test\WarningTriggeredSubscriber; use PHPUn...
inal readonly class TestTriggeredWarningSubscriber extends Subscriber implements WarningTriggeredSubscriber { /** * @throws FileDoesNotExistException * @throws FileDoesNotHaveLineException */ public function notify(WarningTriggered $
the backward compatibility promise for PHPUnit */ f
{ "filepath": "src/Runner/Baseline/Subscriber/TestTriggeredWarningSubscriber.php", "language": "php", "file_size": 973, "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\TestRunner\TestResult; use PHPUnit\Event\TestRunner\Issue\DeprecationTriggered; use...
y promise for PHPUnit */ final readonly class TestRunnerTriggeredIssueDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber { public function notify(DeprecationTriggered $event): void { $this->collector()->test
is class is not covered by the backward compatibilit
{ "filepath": "src/Runner/TestResult/Subscriber/TestRunnerTriggeredIssueDeprecationSubscriber.php", "language": "php", "file_size": 904, "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\TestRunner\TestResult; use PHPUnit\Event\TestRunner\ErrorTriggere...
ise for PHPUnit */ final readonly class TestRunnerTriggeredIssueErrorSubscriber extends Subscriber implements ErrorTriggeredSubscriber { public function notify(ErrorTriggered $event): void { $this->collector()->testRunnerTriggeredIssueErro
ss is not covered by the backward compatibility prom
{ "filepath": "src/Runner/TestResult/Subscriber/TestRunnerTriggeredIssueErrorSubscriber.php", "language": "php", "file_size": 856, "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\Runner\GarbageCollection; use PHPUnit\Event\Inval...
r extends Subscriber implements TestRunnerExecutionFinishedSubscriber { /** * @throws \PHPUnit\Framework\InvalidArgumentException * @throws InvalidArgumentException */ public function notify(ExecutionFinished $event): void {
nts 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 ExecutionFinishedSubscribe
{ "filepath": "src/Runner/GarbageCollection/Subscriber/ExecutionFinishedSubscriber.php", "language": "php", "file_size": 1049, "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\Runner\GarbageCollection; use PHPUnit\Event\Inval...
tends Subscriber implements TestRunnerExecutionStartedSubscriber { /** * @throws \PHPUnit\Framework\InvalidArgumentException * @throws InvalidArgumentException */ public function notify(ExecutionStarted $event): void { $t
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 ExecutionStartedSubscriber ex
{ "filepath": "src/Runner/GarbageCollection/Subscriber/ExecutionStartedSubscriber.php", "language": "php", "file_size": 1042, "cut_index": 513, "middle_length": 229 }