Skip to content

Commit 86929ee

Browse files
author
Mike Erickson
committed
chore: bug fixes, remove phpunit-printer from .gitignore
1 parent 01b21c0 commit 86929ee

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ scripts/
1616
*.taskpaper
1717
NOTES.md
1818
.phpunit.result.cache
19-
phpunit-printer.yml

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "phpunit-pretty-result-printer",
3-
"version": "1.0.0",
4-
"description": "Version 0.27 Extend the default PHPUnit Result Printer with a modern, pretty printer!",
3+
"version": "0.28.0",
4+
"description": "Version 0.28 Extend the default PHPUnit Result Printer with a modern, pretty printer!",
55
"main": "index.js",
66
"directories": {
77
"test": "tests"

phpunit.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit beStrictAboutOutputDuringTests="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" failOnRisky="false" processIsolation="false" stopOnError="false" stopOnFailure="false" verbose="true" printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer">
2+
<phpunit beStrictAboutOutputDuringTests="false" bootstrap="vendor/autoload.php" colors="true"
3+
convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true"
4+
failOnRisky="false" processIsolation="false" stopOnError="false" stopOnFailure="false" verbose="true"
5+
printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer">
36
<testsuites>
47
<testsuite name="Unit">
58
<directory>tests/Unit</directory>
@@ -11,10 +14,7 @@
1114
<directory>tickets</directory>
1215
</testsuite>
1316
</testsuites>
14-
<listeners>
15-
<listener class="NunoMaduro\Collision\Adapters\Phpunit\Listener"/>
16-
</listeners>
17-
<filter>
17+
<filter>
1818
<whitelist processUncoveredFilesFromWhitelist="true">
1919
<directory suffix=".php">src</directory>
2020
</whitelist>

src/PrinterTrait.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ public function version()
140140
}
141141
}
142142

143+
/**
144+
* @return string
145+
*/
146+
public function getVersion() {
147+
return $this->version();
148+
}
149+
143150
/**
144151
* @return string
145152
*/

src/PrinterTrait8.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ public function version()
136136
}
137137
}
138138

139+
/**
140+
* @return string
141+
*/
142+
public function getVersion() {
143+
return $this->version();
144+
}
145+
139146
/**
140147
* @return string
141148
*/

src/init.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
require_once 'PrinterInit.php';
44

5-
$init = new PrinterInit();
6-
$init->init('always',$_SERVER["argv"]);
5+
(new PrinterInit)->init('always',$_SERVER["argv"]);

0 commit comments

Comments
 (0)