prefix stringlengths 512 512 | suffix stringlengths 256 256 | middle stringlengths 14 229 | meta dict |
|---|---|---|---|
e(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Tes... | by the backward compatibility promise for PHPUnit
*/
final readonly class TestFinishedSubscriber extends Subscriber implements FinishedSubscriber
{
public function notify(Finished $event): void
{
$this->printer()->testFinished();
}
}
| is not covered | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFinishedSubscriber.php",
"language": "php",
"file_size": 794,
"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\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\TestRunner\ExecutionStarted;
use PHPUn... | PUnit
*/
final readonly class TestRunnerExecutionStartedSubscriber extends Subscriber implements ExecutionStartedSubscriber
{
public function notify(ExecutionStarted $event): void
{
$this->printer()->testRunnerExecutionStarted($event);
| covered by the backward compatibility promise for PH | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestRunnerExecutionStartedSubscriber.php",
"language": "php",
"file_size": 872,
"cut_index": 559,
"middle_length": 52
} |
clare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event... | lity promise for PHPUnit
*/
final readonly class TestSuiteSkippedSubscriber extends Subscriber implements SkippedSubscriber
{
public function notify(Skipped $event): void
{
$this->printer()->testSuiteSkipped($event->testSuite()->count());
| This class is not covered by the backward compatibi | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestSuiteSkippedSubscriber.php",
"language": "php",
"file_size": 836,
"cut_index": 520,
"middle_length": 52
} |
clare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event... | tibility promise for PHPUnit
*/
final readonly class TestTriggeredErrorSubscriber extends Subscriber implements ErrorTriggeredSubscriber
{
public function notify(ErrorTriggered $event): void
{
$this->printer()->testTriggeredError($event);
| rnal This class is not covered by the backward compa | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredErrorSubscriber.php",
"language": "php",
"file_size": 836,
"cut_index": 520,
"middle_length": 52
} |
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Test\PhpDeprecationTrigger... | promise for PHPUnit
*/
final readonly class TestTriggeredPhpDeprecationSubscriber extends Subscriber implements PhpDeprecationTriggeredSubscriber
{
public function notify(PhpDeprecationTriggered $event): void
{
$this->printer()->testTrigge | class is not covered by the backward compatibility | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpDeprecationSubscriber.php",
"language": "php",
"file_size": 890,
"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\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Test\Php... | atibility promise for PHPUnit
*/
final readonly class TestTriggeredPhpWarningSubscriber extends Subscriber implements PhpWarningTriggeredSubscriber
{
public function notify(PhpWarningTriggered $event): void
{
$this->printer()->testTriggere | ernal This class is not covered by the backward comp | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpWarningSubscriber.php",
"language": "php",
"file_size": 866,
"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\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Test\PhpunitNoticeTriggered;
use PHPUn... | PUnit
*/
final readonly class TestTriggeredPhpunitNoticeSubscriber extends Subscriber implements PhpunitNoticeTriggeredSubscriber
{
public function notify(PhpunitNoticeTriggered $event): void
{
$this->printer()->testTriggeredPhpunitNotice( | covered by the backward compatibility promise for PH | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitNoticeSubscriber.php",
"language": "php",
"file_size": 878,
"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\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Test\PhpunitWarningTrigger... | promise for PHPUnit
*/
final readonly class TestTriggeredPhpunitWarningSubscriber extends Subscriber implements PhpunitWarningTriggeredSubscriber
{
public function notify(PhpunitWarningTriggered $event): void
{
$this->printer()->testTrigge | class is not covered by the backward compatibility | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitWarningSubscriber.php",
"language": "php",
"file_size": 890,
"cut_index": 547,
"middle_length": 52
} |
on trim;
use PHPUnit\Event\Test\PhpunitDeprecationTriggered;
use PHPUnit\Event\Test\PhpunitErrorTriggered;
use PHPUnit\Event\Test\PhpunitNoticeTriggered;
use PHPUnit\Event\Test\PhpunitWarningTriggered;
use PHPUnit\Event\TestRunner\ErrorTriggered;
use PHPUnit\Event\TestRunner\Issue as TestRunnerIssue;
use PHPUnit\Event\... | e backward compatibility promise for PHPUnit
*/
final readonly class ResultPrinter
{
private Printer $printer;
private Renderer $renderer;
private bool $displayDetailsOnIncompleteTests;
private bool $displayDetailsOnSkippedTests;
priva | it\TestRunner\TestResult\TestResult;
use PHPUnit\TextUI\Output\Printer;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by th | {
"filepath": "src/TextUI/Output/Compact/ResultPrinter.php",
"language": "php",
"file_size": 16171,
"cut_index": 921,
"middle_length": 229
} |
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default;
use PHPUnit\Event\Facade;
use PHPUnit\Event\Test\PrintedUnexpectedOutput;
use PHPUnit\Event\Tes... | intedUnexpectedOutputSubscriber
{
private Printer $printer;
public function __construct(Printer $printer, Facade $facade)
{
$this->printer = $printer;
$facade->registerSubscriber($this);
}
public function notify(Print | readonly class UnexpectedOutputPrinter implements Pr | {
"filepath": "src/TextUI/Output/Default/UnexpectedOutputPrinter.php",
"language": "php",
"file_size": 986,
"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\TextUI\Output\Default\ProgressPrinter;
/**
* @no-... | donly class Subscriber
{
private ProgressPrinter $printer;
public function __construct(ProgressPrinter $printer)
{
$this->printer = $printer;
}
protected function printer(): ProgressPrinter
{
return $this->printer; | /
abstract rea | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/Subscriber.php",
"language": "php",
"file_size": 793,
"cut_index": 514,
"middle_length": 14
} |
e(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Tes... | by the backward compatibility promise for PHPUnit
*/
final readonly class TestPreparedSubscriber extends Subscriber implements PreparedSubscriber
{
public function notify(Prepared $event): void
{
$this->printer()->testPrepared();
}
}
| is not covered | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestPreparedSubscriber.php",
"language": "php",
"file_size": 794,
"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\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Test\DeprecationTriggered;
use PHPUnit... | t
*/
final readonly class TestTriggeredDeprecationSubscriber extends Subscriber implements DeprecationTriggeredSubscriber
{
public function notify(DeprecationTriggered $event): void
{
$this->printer()->testTriggeredDeprecation($event);
| red by the backward compatibility promise for PHPUni | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredDeprecationSubscriber.php",
"language": "php",
"file_size": 872,
"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\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Test\Php... | ibility promise for PHPUnit
*/
final readonly class TestTriggeredPhpNoticeSubscriber extends Subscriber implements PhpNoticeTriggeredSubscriber
{
public function notify(PhpNoticeTriggered $event): void
{
$this->printer()->testTriggeredPhpN | nal This class is not covered by the backward compat | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpNoticeSubscriber.php",
"language": "php",
"file_size": 860,
"cut_index": 529,
"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\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Test\WarningTr... | omise for PHPUnit
*/
final readonly class TestTriggeredWarningSubscriber extends Subscriber implements WarningTriggeredSubscriber
{
public function notify(WarningTriggered $event): void
{
$this->printer()->testTriggeredWarning($event);
| lass is not covered by the backward compatibility pr | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredWarningSubscriber.php",
"language": "php",
"file_size": 848,
"cut_index": 535,
"middle_length": 52
} |
s=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Compact;
use const PHP_EOL;
use function assert;
use functi... | function __construct(Printer $printer)
{
$this->printer = $printer;
}
public function nameOfTest(Test $test): string
{
if ($test->isTestMethod()) {
assert($test instanceof TestMethod);
if (!$test-> | t covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class Renderer
{
private Printer $printer;
public | {
"filepath": "src/TextUI/Output/Compact/Renderer.php",
"language": "php",
"file_size": 1940,
"cut_index": 537,
"middle_length": 229
} |
<?php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default\ProgressPrinter;
use PHPUn... | covered by the backward compatibility promise for PHPUnit
*/
final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber
{
public function notify(Failed $event): void
{
$this->printer()->testFailed();
}
}
| s class is not | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestFailedSubscriber.php",
"language": "php",
"file_size": 782,
"cut_index": 512,
"middle_length": 14
} |
declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Eve... | ered by the backward compatibility promise for PHPUnit
*/
final readonly class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber
{
public function notify(Skipped $event): void
{
$this->printer()->testSkipped();
}
}
| ass is not cov | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestSkippedSubscriber.php",
"language": "php",
"file_size": 788,
"cut_index": 518,
"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\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event\Test\PhpunitDeprecationTri... | ibility promise for PHPUnit
*/
final readonly class TestTriggeredPhpunitDeprecationSubscriber extends Subscriber implements PhpunitDeprecationTriggeredSubscriber
{
public function notify(PhpunitDeprecationTriggered $event): void
{
$this->p | nal This class is not covered by the backward compat | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredPhpunitDeprecationSubscriber.php",
"language": "php",
"file_size": 908,
"cut_index": 547,
"middle_length": 52
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Compact\ProgressPrinter;
use const PHP_EOL;
use function str_starts_with;
use function strlen;
use function substr;
use function trim;
u... | med-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 ProgressPrinter
{
private Printer $prin | stTestMethodErrored;
use PHPUnit\Event\Test\BeforeFirstTestMethodFailed;
use PHPUnit\Event\Test\Errored;
use PHPUnit\Event\Test\Failed;
use PHPUnit\TextUI\Output\Compact\Renderer;
use PHPUnit\TextUI\Output\Printer;
/**
* @no-na | {
"filepath": "src/TextUI/Output/Compact/ProgressPrinter/ProgressPrinter.php",
"language": "php",
"file_size": 3517,
"cut_index": 614,
"middle_length": 229
} |
clare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event... | patibility promise for PHPUnit
*/
final readonly class TestTriggeredNoticeSubscriber extends Subscriber implements NoticeTriggeredSubscriber
{
public function notify(NoticeTriggered $event): void
{
$this->printer()->testTriggeredNotice($ev | ternal This class is not covered by the backward com | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestTriggeredNoticeSubscriber.php",
"language": "php",
"file_size": 842,
"cut_index": 520,
"middle_length": 52
} |
clare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Default\ProgressPrinter;
use PHPUnit\Event... | ompatibility promise for PHPUnit
*/
final readonly class TestMarkedIncompleteSubscriber extends Subscriber implements MarkedIncompleteSubscriber
{
public function notify(MarkedIncomplete $event): void
{
$this->printer()->testMarkedIncomple | internal This class is not covered by the backward c | {
"filepath": "src/TextUI/Output/Default/ProgressPrinter/Subscriber/TestMarkedIncompleteSubscriber.php",
"language": "php",
"file_size": 842,
"cut_index": 520,
"middle_length": 52
} |
e(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Code;
/**
* @immutable
*
* @no-named-arguments Para... | }
/**
* @return non-empty-string
*/
public function file(): string
{
return $this->file;
}
/**
* @phpstan-assert-if-true TestMethod $this
*/
public function isTestMethod(): bool
{
return |
* @param non-empty-string $file
*
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(string $file)
{
$this->file = $file;
| {
"filepath": "src/Event/Value/Test/Test.php",
"language": "php",
"file_size": 1338,
"cut_index": 524,
"middle_length": 229
} |
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Compact\ProgressPrinter;
use PHPUnit\Event\Test\AfterLastTestMethodFailed;
use PHPUnit\Event\Test\AfterL... | rd compatibility promise for PHPUnit
*/
final readonly class AfterLastTestMethodFailedSubscriber extends Subscriber implements AfterLastTestMethodFailedSubscriberInterface
{
public function notify(AfterLastTestMethodFailed $event): void
{
| * @internal This class is not covered by the backwa | {
"filepath": "src/TextUI/Output/Compact/ProgressPrinter/Subscriber/AfterLastTestMethodFailedSubscriber.php",
"language": "php",
"file_size": 951,
"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\TextUI\Output\Compact\ProgressPrinter;
use PHPUnit\Event\Test\BeforeFirstTestMethodErrored;
use PHPUnit\Event\Test\Bef... | he backward compatibility promise for PHPUnit
*/
final readonly class BeforeFirstTestMethodErroredSubscriber extends Subscriber implements BeforeFirstTestMethodErroredSubscriberInterface
{
public function notify(BeforeFirstTestMethodErrored $event): v | PUnit
*
* @internal This class is not covered by t | {
"filepath": "src/TextUI/Output/Compact/ProgressPrinter/Subscriber/BeforeFirstTestMethodErroredSubscriber.php",
"language": "php",
"file_size": 972,
"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\TextUI\Output\Compact\ProgressPrinter;
/**
* @no-... | donly class Subscriber
{
private ProgressPrinter $printer;
public function __construct(ProgressPrinter $printer)
{
$this->printer = $printer;
}
protected function printer(): ProgressPrinter
{
return $this->printer; | /
abstract rea | {
"filepath": "src/TextUI/Output/Compact/ProgressPrinter/Subscriber/Subscriber.php",
"language": "php",
"file_size": 793,
"cut_index": 514,
"middle_length": 14
} |
declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Compact\ProgressPrinter;
use PHPUnit\Eve... | ed by the backward compatibility promise for PHPUnit
*/
final readonly class TestFailedSubscriber extends Subscriber implements FailedSubscriber
{
public function notify(Failed $event): void
{
$this->printer()->testFailed($event);
}
}
| s is not cover | {
"filepath": "src/TextUI/Output/Compact/ProgressPrinter/Subscriber/TestFailedSubscriber.php",
"language": "php",
"file_size": 788,
"cut_index": 518,
"middle_length": 14
} |
nction preg_match;
use function preg_split;
use function rtrim;
use function sprintf;
use function str_starts_with;
use function trim;
use PHPUnit\Event\Code\Throwable;
use PHPUnit\Event\Test\AfterLastTestMethodErrored;
use PHPUnit\Event\Test\BeforeFirstTestMethodErrored;
use PHPUnit\Framework\TestStatus\TestStatus;
us... | inal readonly class ResultPrinter
{
private Printer $printer;
private bool $colors;
private int $columns;
private bool $printSummary;
public function __construct(Printer $printer, bool $colors, int $columns, bool $printSummary)
{
| e PHPUnit\Util\Color;
/**
* @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
*/
f | {
"filepath": "src/TextUI/Output/TestDox/ResultPrinter.php",
"language": "php",
"file_size": 14624,
"cut_index": 921,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Event;
use function array_any;
use function array_key_exists;
use function class_exists;
use function class_implements;
use function in_array;
use function interface_exists;
use function sprintf;
/**
* @no-named-arguments Parameter names are not cove... | @throws InvalidEventException
* @throws InvalidSubscriberException
* @throws SubscriberTypeAlreadyRegisteredException
* @throws UnknownEventException
* @throws UnknownSubscriberException
*/
public function addMapping(string $s | array<class-string, class-string>
*/
private array $mapping = [];
/**
* @param class-string $subscriberInterface
* @param class-string $eventClass
*
* @throws EventAlreadyAssignedException
* | {
"filepath": "src/Event/TypeMap.php",
"language": "php",
"file_size": 5631,
"cut_index": 716,
"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\Event;
/**
* @no-named-arguments Parameter names are not covered by the ... | this->dispatcher = $dispatcher;
$this->events = new EventCollection;
}
public function registerTracer(Tracer\Tracer $tracer): void
{
$this->dispatcher->registerTracer($tracer);
}
public function registerSubscriber( | leDispatcher
{
private readonly SubscribableDispatcher $dispatcher;
private EventCollection $events;
private bool $recording = true;
public function __construct(SubscribableDispatcher $dispatcher)
{
$ | {
"filepath": "src/Event/Dispatcher/DeferringDispatcher.php",
"language": "php",
"file_size": 1568,
"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\Event;
use const PHP_EOL;
use function array_key_exists;
use function dirname;
use function sprintf;
use function str_starts_with;
use Throwable;
/**... | * @var list<Tracer\Tracer>
*/
private array $tracers = [];
public function __construct(TypeMap $map)
{
$this->typeMap = $map;
}
public function registerTracer(Tracer\Tracer $tracer): void
{
$this->tracers[] | PUnit
*/
final class DirectDispatcher implements SubscribableDispatcher
{
private readonly TypeMap $typeMap;
/**
* @var array<class-string, list<Subscriber>>
*/
private array $subscribers = [];
/**
| {
"filepath": "src/Event/Dispatcher/DirectDispatcher.php",
"language": "php",
"file_size": 3779,
"cut_index": 614,
"middle_length": 229
} |
e PHPUnit\Event\Code\TestMethod;
use PHPUnit\Event\Code\Throwable;
use PHPUnit\Event\TestSuite\TestSuite;
use PHPUnit\Framework\TestCase;
use PHPUnit\TextUI\Configuration\Configuration;
use SebastianBergmann\Comparator\Comparator;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility... | (string $filename): void;
/**
* @param non-empty-string $filename
* @param non-empty-string $name
* @param non-empty-string $version
*/
public function testRunnerLoadedExtensionFromPhar(string $filename, string $name, string $v | public function testRunnerStarted(): void;
public function testRunnerConfigured(Configuration $configuration): void;
/**
* @param non-empty-string $filename
*/
public function testRunnerBootstrapFinished | {
"filepath": "src/Event/Emitter/Emitter.php",
"language": "php",
"file_size": 14048,
"cut_index": 921,
"middle_length": 229
} |
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Compact\ProgressPrinter;
use PHPUnit\Event\Test\BeforeFirstTestMethodFailed;
use PHPUnit\Event\Test\Befo... | backward compatibility promise for PHPUnit
*/
final readonly class BeforeFirstTestMethodFailedSubscriber extends Subscriber implements BeforeFirstTestMethodFailedSubscriberInterface
{
public function notify(BeforeFirstTestMethodFailed $event): void
| it
*
* @internal This class is not covered by the | {
"filepath": "src/TextUI/Output/Compact/ProgressPrinter/Subscriber/BeforeFirstTestMethodFailedSubscriber.php",
"language": "php",
"file_size": 965,
"cut_index": 582,
"middle_length": 52
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output;
use function assert;
use function count;
use function dirname;
use function explode;
use function fclose;
use function fopen;
use funct... | ackward compatibility promise for PHPUnit
*/
final class DefaultPrinter implements Printer
{
/**
* @var closed-resource|resource
*/
private $stream;
private readonly bool $isPhpStream;
private bool $isOpen;
/**
* @throw | PHPUnit\TextUI\InvalidSocketException;
use PHPUnit\Util\Filesystem;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the b | {
"filepath": "src/TextUI/Output/Printer/DefaultPrinter.php",
"language": "php",
"file_size": 3197,
"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\Event;
use PHPUnit\Runner\DeprecationCollector\Facade as DeprecationColle... | irectDispatcher;
public function __construct(DirectDispatcher $directDispatcher)
{
$this->isolatedDirectDispatcher = $directDispatcher;
$this->events = new EventCollection;
$this->isolatedDirectDispatcher | *
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final class CollectingDispatcher implements Dispatcher
{
private EventCollection $events;
private DirectDispatcher $isolatedD | {
"filepath": "src/Event/Dispatcher/CollectingDispatcher.php",
"language": "php",
"file_size": 1548,
"cut_index": 537,
"middle_length": 229
} |
r $dispatcher;
private readonly Telemetry\System $system;
private readonly Telemetry\Snapshot $startSnapshot;
private Telemetry\Snapshot $previousSnapshot;
public function __construct(Dispatcher $dispatcher, Telemetry\System $system)
{
$this->dispatcher = $dispatcher;
$this->system ... | time\Runtime,
),
);
}
/**
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
*/
public function testRunnerStarted(): void
{
$this->dispatcher->dispatch(
new TestRun | rows UnknownEventTypeException
*/
public function applicationStarted(): void
{
$this->dispatcher->dispatch(
new Application\Started(
$this->telemetryInfo(),
new Run | {
"filepath": "src/Event/Emitter/DispatchingEmitter.php",
"language": "php",
"file_size": 46223,
"cut_index": 2151,
"middle_length": 229
} |
e(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\TextUI\Output\Compact\ProgressPrinter;
use PHPUnit\Event\Tes... | y the backward compatibility promise for PHPUnit
*/
final readonly class TestErroredSubscriber extends Subscriber implements ErroredSubscriber
{
public function notify(Errored $event): void
{
$this->printer()->testErrored($event);
}
}
| not covered b | {
"filepath": "src/TextUI/Output/Compact/ProgressPrinter/Subscriber/TestErroredSubscriber.php",
"language": "php",
"file_size": 794,
"cut_index": 524,
"middle_length": 14
} |
ollectorStatusProvider;
use PHPUnit\Runner\DeprecationCollector\Facade as DeprecationCollector;
/**
* @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 class Facade... | elf::$instance;
}
public static function emitter(): Emitter
{
return self::instance()->emitter;
}
public function __construct()
{
$this->emitter = $this->createDispatchingEmitter();
}
/**
* @throws Ev | = null;
private bool $sealed = false;
public static function instance(): self
{
if (self::$instance === null) {
self::$instance = new self;
}
return s | {
"filepath": "src/Event/Facade.php",
"language": "php",
"file_size": 9376,
"cut_index": 921,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PH... | {
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): string
{
| ts Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $telemetryInfo)
| {
"filepath": "src/Event/Events/TestRunner/Finished.php",
"language": "php",
"file_size": 1043,
"cut_index": 513,
"middle_length": 229
} |
declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Code;
/**
* @immutable
*
* @no-named-argument... | the backward compatibility promise for PHPUnit
*/
public function __construct(string $className, string $methodName)
{
$this->className = $className;
$this->methodName = $methodName;
}
/**
* @return class-string
| e;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @param class-string $className
* @param non-empty-string $methodName
*
* @internal This method is not covered by | {
"filepath": "src/Event/Value/ClassMethod.php",
"language": "php",
"file_size": 1234,
"cut_index": 518,
"middle_length": 229
} |
s=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Code;
use function is_bool;
use function is_scalar;
use function pr... | eof ExpectationFailedException) {
return null;
}
if ($t->getComparisonFailure() === null) {
return null;
}
$expectedAsString = $t->getComparisonFailure()->getExpectedAsString();
if ($expect | ernal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class ComparisonFailureBuilder
{
public static function from(Throwable $t): ?ComparisonFailure
{
if (!$t instanc | {
"filepath": "src/Event/Value/ComparisonFailureBuilder.php",
"language": "php",
"file_size": 1901,
"cut_index": 537,
"middle_length": 229
} |
declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Code;
use PHPUnit\Event\NoPreviousThrowableExcep... | ception
*/
public static function from(\Throwable $t): Throwable
{
$previous = $t->getPrevious();
if ($previous !== null) {
$previous = self::from($previous);
}
return new Throwable(
$t | ity promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class ThrowableBuilder
{
/**
* @throws Exception
* @throws NoPreviousThrowableEx | {
"filepath": "src/Event/Value/ThrowableBuilder.php",
"language": "php",
"file_size": 1194,
"cut_index": 518,
"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\Event\TestSuite;
use function assert;
use function class_exists;
use function count;
use function explode;
use function method_exists;
use PHPUnit\Eve... | it
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class TestSuiteBuilder
{
/**
* @throws RuntimeException
*/
public static function from(FrameworkTestSuite $testSuite): TestS | Suite as FrameworkTestSuite;
use PHPUnit\Runner\Phpt\TestCase as PhptTestCase;
use ReflectionClass;
use ReflectionMethod;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUn | {
"filepath": "src/Event/Value/TestSuite/TestSuiteBuilder.php",
"language": "php",
"file_size": 3361,
"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\Event\TestSuite;
use PHPUnit\Event\Code\TestCollection;
/**
* @immutabl... | mpty-string $name
* @param class-string $className
* @param non-empty-string $methodName
*
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(string $name | {
/**
* @var class-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $methodName;
private string $file;
private int $line;
/**
* @param non-e | {
"filepath": "src/Event/Value/TestSuite/TestSuiteForTestMethodWithDataProvider.php",
"language": "php",
"file_size": 1848,
"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\Event\Telemetry;
use function floor;
use function sprintf;
use PHPUnit\Event\InvalidArgumentException;
/**
* @immutable
*
* @no-named-arguments Pa... | $seconds,
$nanoseconds,
);
}
/**
* @throws InvalidArgumentException
*/
private function __construct(int $seconds, int $nanoseconds)
{
$this->ensureNotNegative($seconds, 'seconds');
$th | -negative-int */
private int $nanoseconds;
/**
* @throws InvalidArgumentException
*/
public static function fromSecondsAndNanoseconds(int $seconds, int $nanoseconds): self
{
return new self(
| {
"filepath": "src/Event/Value/Telemetry/Duration.php",
"language": "php",
"file_size": 3667,
"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\Event\Telemetry;
use function sprintf;
use PHPUnit\Event\InvalidArgumentException;
/**
* @immutab... |
return new self(
$seconds,
$nanoseconds,
);
}
/**
* @throws InvalidArgumentException
*/
private function __construct(int $seconds, int $nanoseconds)
{
$this->ensureNotNegative($sec | t $seconds;
/** @var non-negative-int */
private int $nanoseconds;
/**
* @throws InvalidArgumentException
*/
public static function fromSecondsAndNanoseconds(int $seconds, int $nanoseconds): self
{ | {
"filepath": "src/Event/Value/Telemetry/HRTime.php",
"language": "php",
"file_size": 2704,
"cut_index": 563,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Telemetry;
use function sprintf;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility prom... | eSincePrevious;
private CpuTime $systemCpuTimeSincePrevious;
private CpuTime $totalCpuTimeSincePrevious;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct( | onSincePrevious;
private MemoryUsage $memorySincePrevious;
private CpuTime $userCpuTimeSinceStart;
private CpuTime $systemCpuTimeSinceStart;
private CpuTime $totalCpuTimeSinceStart;
private CpuTime $userCpuTim | {
"filepath": "src/Event/Value/Telemetry/Info.php",
"language": "php",
"file_size": 4383,
"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\Event\Telemetry;
/**
* @no-named-arguments Parameter names are not cover... | y the backward compatibility promise for PHPUnit
*/
public function __construct(StopWatch $stopWatch, MemoryMeter $memoryMeter, GarbageCollectorStatusProvider $garbageCollectorStatusProvider, CpuTimeMeter $cpuTimeMeter)
{
$this->stopWa | topWatch $stopWatch;
private MemoryMeter $memoryMeter;
private GarbageCollectorStatusProvider $garbageCollectorStatusProvider;
private CpuTimeMeter $cpuTimeMeter;
/**
* @internal This method is not covered b | {
"filepath": "src/Event/Value/Telemetry/System.php",
"language": "php",
"file_size": 1795,
"cut_index": 537,
"middle_length": 229
} |
declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Telemetry;
use function gc_status;
/**
* @no-n... | Status(
$status['runs'],
$status['collected'],
$status['threshold'],
$status['roots'],
$status['application_time'],
$status['collector_time'],
$status['destructor_time'],
|
final readonly class SystemGarbageCollectorStatusProvider implements GarbageCollectorStatusProvider
{
public function status(): GarbageCollectorStatus
{
$status = gc_status();
return new GarbageCollector | {
"filepath": "src/Event/Value/Telemetry/SystemGarbageCollectorStatusProvider.php",
"language": "php",
"file_size": 1186,
"cut_index": 518,
"middle_length": 229
} |
php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Telemetry;
use function hrtime;
use PHPUnit\... | ibility promise for PHPUnit
*/
final readonly class SystemStopWatch implements StopWatch
{
/**
* @throws InvalidArgumentException
*/
public function current(): HRTime
{
return HRTime::fromSecondsAndNanoseconds(...hrtime());
| ackward compat | {
"filepath": "src/Event/Value/Telemetry/SystemStopWatch.php",
"language": "php",
"file_size": 791,
"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\Event\Runtime;
use const PHP_OS;
use const PHP_OS... | is->operatingSystem = PHP_OS;
$this->operatingSystemFamily = PHP_OS_FAMILY;
}
public function operatingSystem(): string
{
return $this->operatingSystem;
}
public function operatingSystemFamily(): string
{
| tring $operatingSystem;
private string $operatingSystemFamily;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct()
{
$th | {
"filepath": "src/Event/Value/Runtime/OperatingSystem.php",
"language": "php",
"file_size": 1048,
"cut_index": 513,
"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\Event\Runtime;
use PHPUnit\Runner\Version;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covere... | for PHPUnit
*/
public function __construct()
{
$this->versionId = Version::id();
$this->releaseSeries = Version::series();
}
public function versionId(): string
{
return $this->versionId;
}
pub | s not covered by the backward compatibility promise | {
"filepath": "src/Event/Value/Runtime/PHPUnit.php",
"language": "php",
"file_size": 978,
"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\Event\Runtime;
use function sprintf;
/**
* @immutable
*
... | new OperatingSystem;
$this->php = new PHP;
$this->phpunit = new PHPUnit;
}
public function asString(): string
{
$php = $this->php();
return sprintf(
'PHPUnit %s using PHP %s (%s) | vate PHP $php;
private PHPUnit $phpunit;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct()
{
$this->operatingSystem = | {
"filepath": "src/Event/Value/Runtime/Runtime.php",
"language": "php",
"file_size": 1453,
"cut_index": 524,
"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\Event\Code;
/**
* @immutable
*
* @no-named-argum... | $this->expected = $expected;
$this->actual = $actual;
$this->diff = $diff;
}
public function expected(): string
{
return $this->expected;
}
public function actual(): string
{
return $this->act | private string $diff;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(string $expected, string $actual, string $diff)
{
| {
"filepath": "src/Event/Value/ComparisonFailure.php",
"language": "php",
"file_size": 1089,
"cut_index": 515,
"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\Event\Code;
use const PHP_EOL;
use PHPUnit\Event\NoPreviousThrowableException;
/**
* @immutable
... | ethod is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(string $className, string $message, string $description, string $stackTrace, ?self $previous)
{
$this->className = $className;
| vate string $className;
private string $message;
private string $description;
private string $stackTrace;
private ?Throwable $previous;
/**
* @param class-string $className
*
* @internal This m | {
"filepath": "src/Event/Value/Throwable.php",
"language": "php",
"file_size": 2433,
"cut_index": 563,
"middle_length": 229
} |
s=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\TestSuite;
use PHPUnit\Event\Code\TestCollection;
/**
* @immutabl... | PUnit
*/
public function __construct(string $name, int $size, TestCollection $tests)
{
$this->name = $name;
$this->count = $size;
$this->tests = $tests;
}
/**
* @return non-empty-string
*/
public | */
private string $name;
private int $count;
private TestCollection $tests;
/**
* @param non-empty-string $name
*
* @internal This method is not covered by the backward compatibility promise for PH | {
"filepath": "src/Event/Value/TestSuite/TestSuite.php",
"language": "php",
"file_size": 1735,
"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\Event\Telemetry;
use function sprintf;
use PHPUnit\Event\InvalidArgumentException;
/**
* @immutable
*
* @no-named-arguments Parameter names are no... | }
/**
* @throws InvalidArgumentException
*/
private function __construct(int $seconds, int $nanoseconds)
{
$this->ensureNotNegative($seconds, 'seconds');
$this->ensureNotNegative($nanoseconds, 'nanoseconds');
| private int $nanoseconds;
/**
* @throws InvalidArgumentException
*/
public static function fromSecondsAndNanoseconds(int $seconds, int $nanoseconds): self
{
return new self($seconds, $nanoseconds);
| {
"filepath": "src/Event/Value/Telemetry/CpuTime.php",
"language": "php",
"file_size": 3144,
"cut_index": 614,
"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\Event\Telemetry;
/**
* @immutable
*
* @no-named-arguments Para... | private function __construct(int $bytes)
{
$this->bytes = $bytes;
}
public function bytes(): int
{
return $this->bytes;
}
public function diff(self $other): self
{
return self::fromBytes($this->bytes | self
{
return new self($bytes);
}
| {
"filepath": "src/Event/Value/Telemetry/MemoryUsage.php",
"language": "php",
"file_size": 864,
"cut_index": 529,
"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\Event\Telemetry;
use function getrusage;
use function is_int;
use function sprintf;
use PHPUnit\Eve... | ru_utime.tv_sec', 'ru_utime.tv_usec');
}
/**
* @throws RuntimeException
*/
public function systemCpuTime(): CpuTime
{
return $this->cpuTime('ru_stime.tv_sec', 'ru_stime.tv_usec');
}
/**
* @param 'ru_stime.tv | patibility promise for PHPUnit
*/
final readonly class SystemCpuTimeMeter implements CpuTimeMeter
{
/**
* @throws RuntimeException
*/
public function userCpuTime(): CpuTime
{
return $this->cpuTime(' | {
"filepath": "src/Event/Value/Telemetry/SystemCpuTimeMeter.php",
"language": "php",
"file_size": 2517,
"cut_index": 563,
"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\Event\Telemetry;
use function memory_get_peak_usage;
use function memory_get_usage;
/**
* @no... | MemoryMeter
{
public function memoryUsage(): MemoryUsage
{
return MemoryUsage::fromBytes(memory_get_usage());
}
public function peakMemoryUsage(): MemoryUsage
{
return MemoryUsage::fromBytes(memory_get_peak_usage());
| */
final readonly class SystemMemoryMeter implements | {
"filepath": "src/Event/Value/Telemetry/SystemMemoryMeter.php",
"language": "php",
"file_size": 874,
"cut_index": 559,
"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\Event\TestSuite;
use PHPUnit\Event\Code\TestCollection;
/**... | ompatibility promise for PHPUnit
*/
public function __construct(string $name, int $size, TestCollection $tests, string $file, int $line)
{
parent::__construct($name, $size, $tests);
$this->className = $name;
$this->fil | /**
* @var class-string
*/
private string $className;
private string $file;
private int $line;
/**
* @param class-string $name
*
* @internal This method is not covered by the backward c | {
"filepath": "src/Event/Value/TestSuite/TestSuiteForTestClass.php",
"language": "php",
"file_size": 1423,
"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\Event\Telemetry;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the... | ompatibility promise for PHPUnit
*/
public function __construct(HRTime $time, MemoryUsage $memoryUsage, MemoryUsage $peakMemoryUsage, GarbageCollectorStatus $garbageCollectorStatus, CpuTime $userCpuTime, CpuTime $systemCpuTime, CpuTime $totalCpuTi | ivate GarbageCollectorStatus $garbageCollectorStatus;
private CpuTime $userCpuTime;
private CpuTime $systemCpuTime;
private CpuTime $totalCpuTime;
/**
* @internal This method is not covered by the backward c | {
"filepath": "src/Event/Value/Telemetry/Snapshot.php",
"language": "php",
"file_size": 2136,
"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\Event\Runtime;
use const PHP_EXTRA_VERSION;
use const PHP_MAJOR_VERSION;
use const PHP_MINOR_VERSIO... | Version;
private int $minorVersion;
private int $releaseVersion;
private string $extraVersion;
private string $sapi;
/**
* @var list<string>
*/
private array $extensions;
/**
* @internal This method is not cover | @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
final readonly class PHP
{
private string $version;
private int $versionId;
private int $major | {
"filepath": "src/Event/Value/Runtime/PHP.php",
"language": "php",
"file_size": 2428,
"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\Event\Telemetry;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the... | e int $bufferSize;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(int $runs, int $collected, int $threshold, int $roots, float $applicationTime, float $collecto | ots;
private float $applicationTime;
private float $collectorTime;
private float $destructorTime;
private float $freeTime;
private bool $running;
private bool $protected;
private bool $full;
privat | {
"filepath": "src/Event/Value/Telemetry/GarbageCollectorStatus.php",
"language": "php",
"file_size": 2720,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PH... | etryInfo)
{
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): stri | ed implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $telem | {
"filepath": "src/Event/Events/TestRunner/ChildProcessErrored.php",
"language": "php",
"file_size": 1055,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PH... | etryInfo)
{
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): stri | ed implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $telem | {
"filepath": "src/Event/Events/TestRunner/ChildProcessStarted.php",
"language": "php",
"file_size": 1055,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PHPUnit\Event... | public function __construct(Telemetry\Info $telemetryInfo, Configuration $configuration)
{
$this->telemetryInfo = $telemetryInfo;
$this->configuration = $configuration;
}
public function telemetryInfo(): Telemetry\Info
| ss Configured implements Event
{
private Telemetry\Info $telemetryInfo;
private Configuration $configuration;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
| {
"filepath": "src/Event/Events/TestRunner/Configured.php",
"language": "php",
"file_size": 1298,
"cut_index": 524,
"middle_length": 229
} |
declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Telemetry;
use function hrtime;
use PHPUnit\Even... | mpatibility promise for PHPUnit
*/
public function __construct(HRTime $offset)
{
$this->offset = $offset;
}
/**
* @throws InvalidArgumentException
*/
public function current(): HRTime
{
if ($this->off | ard compatibility promise for PHPUnit
*
* @codeCoverageIgnore
*/
final class SystemStopWatchWithOffset implements StopWatch
{
private ?HRTime $offset;
/**
* @internal This method is not covered by the backward co | {
"filepath": "src/Event/Value/Telemetry/SystemStopWatchWithOffset.php",
"language": "php",
"file_size": 1202,
"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\Event\Code;
use function count;
use Countable;
use IteratorA... | unction fromArray(array $tests): self
{
return new self(...$tests);
}
private function __construct(Test ...$tests)
{
$this->tests = $tests;
}
/**
* @return list<Test>
*/
public function asArray(): arr | e for PHPUnit
*/
final readonly class TestCollection implements Countable, IteratorAggregate
{
/**
* @var list<Test>
*/
private array $tests;
/**
* @param list<Test> $tests
*/
public static f | {
"filepath": "src/Event/Value/Test/TestCollection.php",
"language": "php",
"file_size": 1258,
"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\Event\Code;
use PHPUnit\Framework\TestCase;
use PHPUnit\Logging\TestDox\N... | tifier();
return new TestDox(
$prettifier->prettifyTestClassName($testCase::class),
$prettifier->prettifyTestCase($testCase, false),
$prettifier->prettifyTestCase($testCase, true),
);
}
/**
| lity promise for PHPUnit
*/
final class TestDoxBuilder
{
private static ?NamePrettifier $namePrettifier = null;
public static function fromTestCase(TestCase $testCase): TestDox
{
$prettifier = self::namePret | {
"filepath": "src/Event/Value/Test/TestDoxBuilder.php",
"language": "php",
"file_size": 1751,
"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\Event\Code;
use function is_numeric;
use PHPUnit\Event\TestData\DataFromDataProvider;
use PHPUnit\E... | the backward compatibility promise for PHPUnit
*/
final readonly class TestMethodBuilder
{
public static function fromTestCase(TestCase $testCase, bool $useTestCaseForTestDox = true): TestMethod
{
$methodName = $testCase->name();
$ | Exporter;
use PHPUnit\Util\Reflection;
use PHPUnit\Util\Test as TestUtil;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by | {
"filepath": "src/Event/Value/Test/TestMethodBuilder.php",
"language": "php",
"file_size": 2710,
"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\Event\TestData;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibil... | data;
}
/**
* @phpstan-assert-if-true DataFromDataProvider $this
*/
public function isFromDataProvider(): bool
{
return false;
}
/**
* @phpstan-assert-if-true DataFromTestDependency $this
*/
public | function data(): string
{
return $this-> | {
"filepath": "src/Event/Value/Test/TestData/TestData.php",
"language": "php",
"file_size": 964,
"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\Event\TestData;
use function assert;
use Iterator;
/**
* @... | is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(TestDataCollection $data)
{
$this->data = $data->asArray();
}
public function rewind(): void
{
$this->position = 0;
| lectionIterator implements Iterator
{
/**
* @var list<TestData>
*/
private readonly array $data;
/**
* @var non-negative-int
*/
private int $position = 0;
/**
* @internal This method | {
"filepath": "src/Event/Value/Test/TestData/TestDataCollectionIterator.php",
"language": "php",
"file_size": 1464,
"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\Event\Code\IssueTrigger;
use function sprintf;
/**
* @immutable
*
* @no-named-arguments Paramet... | caller;
}
/**
* An issue is triggered in first-party code or in test code.
*/
public function isSelf(): bool
{
return $this->callee !== null && $this->callee->isFirstPartyOrTest();
}
/**
* First-party code t | tion from(?Code $callee, ?Code $caller): self
{
return new self($callee, $caller);
}
private function __construct(?Code $callee, ?Code $caller)
{
$this->callee = $callee;
$this->caller = $ | {
"filepath": "src/Event/Value/Test/Issue/IssueTrigger.php",
"language": "php",
"file_size": 2680,
"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\Event;
use function count;
use Countable;
use IteratorAggreg... | {
$this->events[] = $event;
}
}
/**
* @return list<Event>
*/
public function asArray(): array
{
return $this->events;
}
public function count(): int
{
return count($this->events); | al class EventCollection implements Countable, IteratorAggregate
{
/**
* @var list<Event>
*/
private array $events = [];
public function add(Event ...$events): void
{
foreach ($events as $event) | {
"filepath": "src/Event/Events/EventCollection.php",
"language": "php",
"file_size": 1314,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PH... | ryInfo)
{
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): string | implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $telemet | {
"filepath": "src/Event/Events/TestRunner/EventFacadeSealed.php",
"language": "php",
"file_size": 1051,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PHPU... | nfo)
{
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): string
| plements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $telemetryI | {
"filepath": "src/Event/Events/TestRunner/ExecutionAborted.php",
"language": "php",
"file_size": 1060,
"cut_index": 515,
"middle_length": 229
} |
e(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\TestRunner;
use function sprintf;
use PHPUnit\Event\Ev... | promise for PHPUnit
*/
public function __construct(Telemetry\Info $telemetryInfo, TestSuite $testSuite)
{
$this->telemetryInfo = $telemetryInfo;
$this->testSuite = $testSuite;
}
public function telemetryInfo(): Tel | PHPUnit
*/
final readonly class ExecutionStarted implements Event
{
private Telemetry\Info $telemetryInfo;
private TestSuite $testSuite;
/**
* @internal This method is not covered by the backward compatibility | {
"filepath": "src/Event/Events/TestRunner/ExecutionStarted.php",
"language": "php",
"file_size": 1448,
"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\Event\TestRunner;
use function sprintf;
use PHPUnit\Event\Event;
use PHPUnit\Event\Telemetry;
/**
... | */
private string $version;
/**
* @param non-empty-string $filename
* @param non-empty-string $name
* @param non-empty-string $version
*
* @internal This method is not covered by the backward compatibility promise for P | private Telemetry\Info $telemetryInfo;
/**
* @var non-empty-string
*/
private string $filename;
/**
* @var non-empty-string
*/
private string $name;
/**
* @var non-empty-string
| {
"filepath": "src/Event/Events/TestRunner/ExtensionLoadedFromPhar.php",
"language": "php",
"file_size": 2083,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PHPUnit\Event... | lic function __construct(Telemetry\Info $telemetryInfo, string $stdout, string $stderr)
{
$this->telemetryInfo = $telemetryInfo;
$this->stdout = $stdout;
$this->stderr = $stderr;
}
public function telemetr | nts Event
{
private Telemetry\Info $telemetryInfo;
private string $stdout;
private string $stderr;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
pub | {
"filepath": "src/Event/Events/TestRunner/ChildProcessFinished.php",
"language": "php",
"file_size": 1385,
"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\Event\TestRunner;
use function sprintf;
use PHPUnit\Event\Event;
use PHPU... | **
* @param non-empty-string $message
*
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $telemetryInfo, string $message)
{
$this->tel | punitDeprecationTriggered in PHPUnit 14
*/
final readonly class DeprecationTriggered implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @var non-empty-string
*/
private string $message;
/ | {
"filepath": "src/Event/Events/TestRunner/DeprecationTriggered.php",
"language": "php",
"file_size": 1557,
"cut_index": 537,
"middle_length": 229
} |
e(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Code;
use function assert;
use Iterator;
/**
* @temp... | by the backward compatibility promise for PHPUnit
*/
public function __construct(TestCollection $tests)
{
$this->tests = $tests->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public | tor implements Iterator
{
/**
* @var list<Test>
*/
private readonly array $tests;
/**
* @var non-negative-int
*/
private int $position = 0;
/**
* @internal This method is not covered | {
"filepath": "src/Event/Value/Test/TestCollectionIterator.php",
"language": "php",
"file_size": 1447,
"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\Event\TestData;
/**
* @immutable
*
* @no-named-arguments ... | Output);
}
protected function __construct(int|string $dataSetName, string $data, string $dataAsStringForResultOutput)
{
$this->dataSetName = $dataSetName;
$this->dataAsStringForResultOutput = $dataAsStringForRes | ate string $dataAsStringForResultOutput;
public static function from(int|string $dataSetName, string $data, string $dataAsStringForResultOutput): self
{
return new self($dataSetName, $data, $dataAsStringForResult | {
"filepath": "src/Event/Value/Test/TestData/DataFromDataProvider.php",
"language": "php",
"file_size": 1472,
"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\Event\TestData;
use function count;
use Countable;
use IteratorAggregate;
/**
* @template-impleme... | public static function fromArray(array $data): self
{
return new self(...$data);
}
private function __construct(TestData ...$data)
{
$fromDataProvider = null;
foreach ($data as $_data) {
if ($_data->isF | ollection implements Countable, IteratorAggregate
{
/**
* @var list<TestData>
*/
private array $data;
private ?DataFromDataProvider $fromDataProvider;
/**
* @param list<TestData> $data
*/
| {
"filepath": "src/Event/Value/Test/TestData/TestDataCollection.php",
"language": "php",
"file_size": 2067,
"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\Event\TestRunner;
use function sprintf;
use PHPUnit\Event\Ev... | method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $telemetryInfo, string $filename)
{
$this->telemetryInfo = $telemetryInfo;
$this->filename = $filename;
| rapFinished implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @var non-empty-string
*/
private string $filename;
/**
* @param non-empty-string $filename
*
* @internal This | {
"filepath": "src/Event/Events/TestRunner/BootstrapFinished.php",
"language": "php",
"file_size": 1454,
"cut_index": 524,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PHPU... | Info)
{
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): string
| mplements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $telemetry | {
"filepath": "src/Event/Events/TestRunner/ExecutionFinished.php",
"language": "php",
"file_size": 1062,
"cut_index": 515,
"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\Event\TestRunner;
use const PHP_EOL;
use function implode;
use function sprintf;
use PHPUnit\Event\... | * @var positive-int
*/
private int $line;
private bool $suppressed;
/**
* @param non-empty-string $message
* @param non-empty-string $file
* @param positive-int $line
*
* @internal This method is not cove | rTriggered implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @var non-empty-string
*/
private string $message;
/**
* @var non-empty-string
*/
private string $file;
/**
| {
"filepath": "src/Event/Events/TestRunner/ErrorTriggered.php",
"language": "php",
"file_size": 2586,
"cut_index": 563,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Code;
use function is_int;
use function sprintf;
use PHPUnit\Event\TestData\TestDataCollection;
use PHPUnit\Metadata\MetadataCollection;
/**
*... | private MetadataCollection $metadata;
private TestDataCollection $testData;
/**
* @param class-string $className
* @param non-empty-string $methodName
* @param non-empty-string $file
* @param non-negative-int $line
| lass-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @var non-negative-int
*/
private int $line;
private TestDox $testDox;
| {
"filepath": "src/Event/Value/Test/TestMethod.php",
"language": "php",
"file_size": 3532,
"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\Event\Code\IssueTrigger;
enum Code: string
{
public func... | irdParty || $this === self::PHPUnit || $this === self::PHP;
}
case FirstParty = 'first-party code';
case ThirdParty = 'third-party code';
case Test = 'test code';
case PHP = 'PHP runtime';
case PHPUnit = 'PHPUnit';
} | s === self::Th | {
"filepath": "src/Event/Value/Test/Issue/Code.php",
"language": "php",
"file_size": 795,
"cut_index": 524,
"middle_length": 14
} |
s=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\TestRunner;
use function sprintf;
use PHPUnit\Event\Event;
use PHPU... | * @param class-string $className
* @param array<string, string> $parameters
*
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $tele | ed implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @var class-string
*/
private string $className;
/**
* @var array<string, string>
*/
private array $parameters;
/**
| {
"filepath": "src/Event/Events/TestRunner/ExtensionBootstrapped.php",
"language": "php",
"file_size": 1799,
"cut_index": 537,
"middle_length": 229
} |
e(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\Code;
/**
* @immutable
*
* @no-named-arguments Para... | string $prettifiedMethodName, string $prettifiedAndColorizedMethodName)
{
$this->prettifiedClassName = $prettifiedClassName;
$this->prettifiedMethodName = $prettifiedMethodName;
$this->prettifiedAndColo | me;
private string $prettifiedAndColorizedMethodName;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(string $prettifiedClassName, | {
"filepath": "src/Event/Value/Test/TestDox.php",
"language": "php",
"file_size": 1402,
"cut_index": 524,
"middle_length": 229
} |
e(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event;
use function assert;
use Iterator;
/**
* @template-... | by the backward compatibility promise for PHPUnit
*/
public function __construct(EventCollection $events)
{
$this->events = $events->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
pub | implements Iterator
{
/**
* @var list<Event>
*/
private readonly array $events;
/**
* @var non-negative-int
*/
private int $position = 0;
/**
* @internal This method is not covered | {
"filepath": "src/Event/Events/EventCollectionIterator.php",
"language": "php",
"file_size": 1454,
"cut_index": 524,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PHPU... | elemetryInfo)
{
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): | sabled implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $t | {
"filepath": "src/Event/Events/TestRunner/GarbageCollectionDisabled.php",
"language": "php",
"file_size": 1079,
"cut_index": 515,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PHPU... | telemetryInfo)
{
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): | iggered implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $ | {
"filepath": "src/Event/Events/TestRunner/GarbageCollectionTriggered.php",
"language": "php",
"file_size": 1081,
"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\Event\TestRunner;
use const PHP_EOL;
use function implode;
use function sprintf;
use PHPUnit\Event\Code\IssueTrigger\IssueTrigger;
use PHPUnit\Event\E... | /**
* @var positive-int
*/
private int $line;
private bool $suppressed;
private bool $ignoredByBaseline;
private IssueTrigger $trigger;
/**
* @param non-empty-string $message
* @param non-empty-string $file
| precationTriggered implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @var non-empty-string
*/
private string $message;
/**
* @var non-empty-string
*/
private string $file;
| {
"filepath": "src/Event/Events/TestRunner/PhpDeprecationTriggered.php",
"language": "php",
"file_size": 3185,
"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\Event\TestRunner;
use const PHP_EOL;
use function implode;
use function sprintf;
use PHPUnit\Event\... | /**
* @var positive-int
*/
private int $line;
private bool $suppressed;
private bool $ignoredByBaseline;
/**
* @param non-empty-string $message
* @param non-empty-string $file
* @param positive-int $line
| arningTriggered implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @var non-empty-string
*/
private string $message;
/**
* @var non-empty-string
*/
private string $file;
| {
"filepath": "src/Event/Events/TestRunner/PhpWarningTriggered.php",
"language": "php",
"file_size": 2933,
"cut_index": 563,
"middle_length": 229
} |
s=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\TestRunner;
use function sprintf;
use PHPUnit\Event\Event;
use PHPU... | ;
/**
* @param non-negative-int $cacheHits
* @param non-negative-int $cacheMisses
*
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $te | deCoverageFinished implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @var non-negative-int
*/
private int $cacheHits;
/**
* @var non-negative-int
*/
private int $cacheMisses | {
"filepath": "src/Event/Events/TestRunner/StaticAnalysisForCodeCoverageFinished.php",
"language": "php",
"file_size": 1874,
"cut_index": 537,
"middle_length": 229
} |
hp declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Event\TestRunner;
use PHPUnit\Event\Event;
use PHPU... | lemetryInfo)
{
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): s | abled implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $te | {
"filepath": "src/Event/Events/TestRunner/GarbageCollectionEnabled.php",
"language": "php",
"file_size": 1077,
"cut_index": 515,
"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\Event\TestRunner;
use const PHP_EOL;
use function implode;
use function sprintf;
use PHPUnit\Event\... | /**
* @var positive-int
*/
private int $line;
private bool $suppressed;
private bool $ignoredByBaseline;
/**
* @param non-empty-string $message
* @param non-empty-string $file
* @param positive-int $line
* | oticeTriggered implements Event
{
private Telemetry\Info $telemetryInfo;
/**
* @var non-empty-string
*/
private string $message;
/**
* @var non-empty-string
*/
private string $file;
| {
"filepath": "src/Event/Events/TestRunner/PhpNoticeTriggered.php",
"language": "php",
"file_size": 2931,
"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\Event\TestRunner;
use PHPUnit\Event\Event;
use PH... | {
$this->telemetryInfo = $telemetryInfo;
}
public function telemetryInfo(): Telemetry\Info
{
return $this->telemetryInfo;
}
/**
* @return non-empty-string
*/
public function asString(): string
{
| s Event
{
private Telemetry\Info $telemetryInfo;
/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*/
public function __construct(Telemetry\Info $telemetryInfo)
| {
"filepath": "src/Event/Events/TestRunner/Started.php",
"language": "php",
"file_size": 1041,
"cut_index": 513,
"middle_length": 229
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.