Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6f71dc1

Browse files
composer require codedungeon/phpunit-result-printer, created phpunit.xml for tests
1 parent 5032e18 commit 6f71dc1

File tree

5 files changed

+316
-4
lines changed

5 files changed

+316
-4
lines changed

‎Test/Unit/ApplicationTest.php‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Test\Unit;
4+
5+
use App\Helpers\App;
6+
use PHPUnit\Framework\TestCase;
7+
8+
class ApplicationTest extends TestCase
9+
{
10+
public function testItCanGetInstanceOfApp()
11+
{
12+
static::assertInstanceOf(App::class, new App());
13+
}
14+
}

‎composer.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"ext-json": "*"
55
},
66
"require-dev": {
7-
"phpunit/phpunit": "^7"
7+
"phpunit/phpunit": "^7",
8+
"codedungeon/phpunit-result-printer": "0.23.4"
89
},
910
"autoload": {
1011
"psr-4": {
@@ -16,4 +17,4 @@
1617
"Test\\": "Test"
1718
}
1819
}
19-
}
20+
}

‎composer.lock‎

Lines changed: 262 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎phpunit-printer.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
options:
2+
cd-printer-hide-class: false
3+
cd-printer-simple-output: false
4+
cd-printer-show-config: true
5+
cd-printer-hide-namespace: false
6+
cd-printer-anybar: false
7+
cd-printer-anybar-port: 1738
8+
markers:
9+
cd-pass: ""
10+
cd-fail: ""
11+
cd-error: ""
12+
cd-skipped: "=> "
13+
cd-incomplete: ""
14+
cd-risky: ""

‎phpunit.xml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
bootstrap="vendor/autoload.php"
4+
colors="true"
5+
convertErrorsToExceptions="true"
6+
convertNoticesToExceptions="true"
7+
convertWarningsToExceptions="true"
8+
stopOnFailure="false"
9+
processIsolation="false"
10+
verbose="true"
11+
printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer">
12+
<testsuites>
13+
<testsuite name="Unit">
14+
<directory>Test/Unit</directory>
15+
</testsuite>
16+
17+
<testsuite name="Functional">
18+
<directory>Test/Functional</directory>
19+
</testsuite>
20+
</testsuites>
21+
22+
23+
</phpunit>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /