Skip to content

Commit f056b81

Browse files
removed require statements for support printer classes, they are covered by autoloader
1 parent af90795 commit f056b81

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codedungeon/phpunit-result-printer",
3-
"version": "0.15.5",
3+
"version": "0.16.0",
44
"description": "PHPUnit Pretty Result Printer",
55
"keywords": [
66
"phpunit",

phpunit.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGLobals="false"
3-
beStrictAboutOutputDuringTests="false"
2+
<phpunit beStrictAboutOutputDuringTests="false"
43
bootstrap="vendor/autoload.php"
54
colors="true"
65
convertErrorsToExceptions="true"

src/Printer.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@
66
use PHPUnit_TextUI_ResultPrinter;
77

88
if (class_exists(PHPUnit_TextUI_ResultPrinter::class)) {
9-
require __DIR__ . '/ResultPrinter5.php';
10-
119
class Printer extends ResultPrinter5
1210
{
1311
use PrinterTrait;
1412
}
1513
}
1614

1715
if (version_compare(Version::series(), '6.99.99', '<=')) {
18-
require __DIR__ . '/ResultPrinter6.php';
19-
2016
class Printer extends ResultPrinter6
2117
{
2218
use PrinterTrait;
@@ -27,8 +23,6 @@ class Printer extends ResultPrinter6
2723
$high = version_compare(Version::series(), '7.0.99', '<=');
2824

2925
if ($low && $high) {
30-
require __DIR__ . '/ResultPrinter70.php';
31-
3226
class Printer extends ResultPrinter70
3327
{
3428
use PrinterTrait;
@@ -39,8 +33,6 @@ class Printer extends ResultPrinter70
3933
$high = true; // version_compare(Version::series(),'7.1.99','<=');
4034

4135
if ($low && $high) {
42-
require __DIR__ . '/ResultPrinter71.php';
43-
4436
class Printer extends ResultPrinter71
4537
{
4638
use PrinterTrait;

0 commit comments

Comments
 (0)