Page MenuHomeWickedGov Phorge

UnintentionallyCoveredCodeException.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

UnintentionallyCoveredCodeException.php

<?php declare(strict_types=1);
/*
* This file is part of phpunit/php-code-coverage.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\CodeCoverage;
use RuntimeException;
final class UnintentionallyCoveredCodeException extends RuntimeException implements Exception
{
/**
* @var array
*/
private $unintentionallyCoveredUnits;
public function __construct(array $unintentionallyCoveredUnits)
{
$this->unintentionallyCoveredUnits = $unintentionallyCoveredUnits;
parent::__construct($this->toString());
}
public function getUnintentionallyCoveredUnits(): array
{
return $this->unintentionallyCoveredUnits;
}
private function toString(): string
{
$message = '';
foreach ($this->unintentionallyCoveredUnits as $unit) {
$message .= '- ' . $unit . "\n";
}
return $message;
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 19 2026, 16:50 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b3/b4/c98d2652832e5201e93e9bb8b66c
Default Alt Text
UnintentionallyCoveredCodeException.php (1 KB)

Event Timeline