Skip to content

Commit 30c164c

Browse files
Use custom ErrorException
1 parent 7a1ad87 commit 30c164c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/Runner/ErrorHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use function error_reporting;
2828
use function restore_error_handler;
2929
use function set_error_handler;
30-
use ErrorException;
3130
use PHPUnit\Event;
3231
use PHPUnit\Event\Code\NoTestCaseObjectOnCallStackException;
3332
use PHPUnit\Runner\Baseline\Baseline;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php declare(strict_types=1);
2+
/*
3+
* This file is part of PHPUnit.
4+
*
5+
* (c) Sebastian Bergmann <[email protected]>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
namespace PHPUnit\Runner;
11+
12+
use Error;
13+
14+
/**
15+
* @internal This class is not covered by the backward compatibility promise for PHPUnit
16+
*/
17+
final class ErrorException extends Error implements Exception
18+
{
19+
}

0 commit comments

Comments
 (0)