Skip to content

Commit 1351262

Browse files
committed
switch to PHPUnit 6.0
1 parent 538367e commit 1351262

File tree

4 files changed

+59
-113
lines changed

4 files changed

+59
-113
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=5.3.0",
15+
"php": "^7.0",
1616
"ext-pcntl": "*",
17-
"phpunit/phpunit": ">=4.8 <6.0"
17+
"phpunit/phpunit": "^6.0"
1818
},
1919
"autoload": {
2020
"psr-4": {

composer.lock

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

src/PHPUnit/Listener/GracefulInterruptListener.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
namespace Esler\PHPUnit\Listener;
33

44
use BadMethodCallException;
5-
use PHPUnit_Framework_BaseTestListener;
6-
use PHPUnit_Framework_Test;
5+
use PHPUnit\Framework\BaseTestListener;
6+
use PHPUnit\Framework\Test;
77

88
/**
99
* This class defines an extension for PHPUnit.
@@ -14,7 +14,7 @@
1414
* @author Ondrej Esler <esler.ondrej@gmail.com>
1515
* @license MIT
1616
*/
17-
class GracefulInterruptListener extends PHPUnit_Framework_BaseTestListener
17+
class GracefulInterruptListener extends BaseTestListener
1818
{
1919

2020
/**
@@ -33,10 +33,10 @@ public function __construct() {
3333
/**
3434
* A test ended.
3535
*
36-
* @param PHPUnit_Framework_Test $test
37-
* @param float $time
36+
* @param Test $test
37+
* @param float $time
3838
*/
39-
public function endTest(PHPUnit_Framework_Test $test, $time) {
39+
public function endTest(Test $test, $time) {
4040
$this->test = $test;
4141
pcntl_signal_dispatch();
4242
}

tests/unit/PHPUnit/Listener/GracefulInterruptListenerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
namespace Esler\PHPUnit\Listener;
33

4+
use PHPUnit\Framework\TestCase;
5+
46
/**
57
* Fake test suite with some long tests. It servers like demonstration
68
* of listener's feature. Try hit Ctrl+\. Process will not goes into background
@@ -10,7 +12,7 @@
1012
* @author Ondrej Esler <esler.ondrej@gmail.com>
1113
* @license MIT
1214
*/
13-
class GracefulInterruptListenerTest extends \PHPUnit_Framework_TestCase
15+
class GracefulInterruptListenerTest extends TestCase
1416
{
1517

1618
/**

0 commit comments

Comments
 (0)