Skip to content

Commit f7f5566

Browse files
committed
Merge branch 'hotfix/1.0.10'
2 parents c0d3dce + 9c3ef6c commit f7f5566

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Sempro AS
3+
Copyright (c) Sempro AS
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
> Prettify PHPUnit output
33
44
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
5-
[![eslint](https://img.shields.io/badge/code_style-PSR_2-blue.svg?style=flat-square)](http://www.php-fig.org/psr/psr-2/)
5+
[![psr-2](https://img.shields.io/badge/code_style-PSR_2-blue.svg?style=flat-square)](http://www.php-fig.org/psr/psr-2/)
66

77
<img src="https://raw.githubusercontent.com/Sempro/phpunit-pretty-print/master/preview.png" alt="phpunit-pretty-print">
88

@@ -11,7 +11,8 @@
1111
composer require sempro/phpunit-pretty-print --dev
1212
```
1313

14-
This package requires >=7.0.0 of phpunit. If you're running on version 6, please use version 1.0.3 of this package.
14+
This package requires `>=7.0.0` of PHPUnit.
15+
If you're running on `6.x`, please use version `1.0.3`.
1516

1617
### Usage
1718
You can specify the printer to use on the phpunit command line:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sempro/phpunit-pretty-print",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "Prettify PHPUnit output",
55
"type": "library",
66
"license": "MIT",

src/PrettyPrinter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ class PrettyPrinter extends ResultPrinter implements TestListener
1515
protected $className;
1616
protected $previousClassName;
1717

18-
public function startTestSuite(TestSuite $suite)
18+
public function startTestSuite(TestSuite $suite): void
1919
{
2020
parent::startTestSuite($suite);
2121
}
2222

23-
public function startTest(Test $test)
23+
public function startTest(Test $test): void
2424
{
2525
$this->className = get_class($test);
2626
}
2727

28-
public function endTest(Test $test, float $time)
28+
public function endTest(Test $test, float $time): void
2929
{
3030
parent::endTest($test, $time);
3131

@@ -88,7 +88,7 @@ public function endTest(Test $test, float $time)
8888
$this->writeWithColor($timeColor, '[' . number_format($time, 3) . 's]', true);
8989
}
9090

91-
protected function writeProgress(string $progress)
91+
protected function writeProgress(string $progress): void
9292
{
9393
if ($this->previousClassName !== $this->className) {
9494
$this->write("\n");
@@ -126,7 +126,7 @@ protected function writeProgress(string $progress)
126126
}
127127
}
128128

129-
protected function printDefectTrace(TestFailure $defect)
129+
protected function printDefectTrace(TestFailure $defect): void
130130
{
131131
$this->write($this->formatExceptionMsg($defect->getExceptionAsString()));
132132
$trace = Filter::getFilteredStacktrace(

0 commit comments

Comments
 (0)