Skip to content

Commit 1513981

Browse files
committed
Compatibility with phpunit 5.1
1 parent 22164e1 commit 1513981

File tree

2 files changed

+32
-9
lines changed

2 files changed

+32
-9
lines changed

.travis.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,23 @@ php:
88
- 7.1
99

1010
env:
11-
- PHPUNIT=4.8
12-
- PHPUNIT=5.0
13-
- PHPUNIT=5.1
14-
- PHPUNIT=5.2
15-
- PHPUNIT=5.3
16-
- PHPUNIT=5.4
17-
- PHPUNIT=5.5
18-
- PHPUNIT=5.6
19-
- PHPUNIT=5.7
11+
- PHPUNIT=4.8.*
12+
- PHPUNIT=5.0.*
13+
- PHPUNIT=5.1.*
14+
- PHPUNIT=5.2.*
15+
- PHPUNIT=5.3.*
16+
- PHPUNIT=5.4.*
17+
- PHPUNIT=5.5.*
18+
- PHPUNIT=5.6.*
19+
- PHPUNIT=5.6.x-dev
20+
- PHPUNIT=5.7.x-dev
21+
- PHPUNIT=6.0.x-dev
22+
23+
matrix:
24+
allow_failure:
25+
- env: PHPUNIT=5.6.x-dev
26+
- env: PHPUNIT=5.7.x-dev
27+
- env: PHPUNIT=6.0.x-dev
2028

2129
cache:
2230
directories:

src/JohnKary/PHPUnit/Listener/SpeedTrapListener.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,21 @@ public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time)
6161
{
6262
}
6363

64+
/**
65+
* A warning occurred.
66+
*
67+
* @param \PHPUnit_Framework_Test $test
68+
* @param \PHPUnit_Framework_Warning $e
69+
* @param float $time
70+
*
71+
* @since Method available since Release 6.0.0
72+
* @todo Uncomment in time for PHPUnit 6.0.0
73+
* @see https://github.com/sebastianbergmann/phpunit/pull/1840#issuecomment-162535997
74+
*/
75+
public function addWarning(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_Warning $e, $time)
76+
{
77+
}
78+
6479
/**
6580
* A failure occurred.
6681
*

0 commit comments

Comments
 (0)