Skip to content

Commit

Permalink
switch to PHPUnit 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
esler committed Feb 13, 2017
1 parent 538367e commit 1351262
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 113 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
}
],
"require": {
"php": ">=5.3.0",
"php": "^7.0",
"ext-pcntl": "*",
"phpunit/phpunit": ">=4.8 <6.0"
"phpunit/phpunit": "^6.0"
},
"autoload": {
"psr-4": {
Expand Down
152 changes: 48 additions & 104 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/PHPUnit/Listener/GracefulInterruptListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
namespace Esler\PHPUnit\Listener;

use BadMethodCallException;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_Test;
use PHPUnit\Framework\BaseTestListener;
use PHPUnit\Framework\Test;

/**
* This class defines an extension for PHPUnit.
Expand All @@ -14,7 +14,7 @@
* @author Ondrej Esler <[email protected]>
* @license MIT
*/
class GracefulInterruptListener extends PHPUnit_Framework_BaseTestListener
class GracefulInterruptListener extends BaseTestListener
{

/**
Expand All @@ -33,10 +33,10 @@ public function __construct() {
/**
* A test ended.
*
* @param PHPUnit_Framework_Test $test
* @param float $time
* @param Test $test
* @param float $time
*/
public function endTest(PHPUnit_Framework_Test $test, $time) {
public function endTest(Test $test, $time) {
$this->test = $test;
pcntl_signal_dispatch();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
namespace Esler\PHPUnit\Listener;

use PHPUnit\Framework\TestCase;

/**
* Fake test suite with some long tests. It servers like demonstration
* of listener's feature. Try hit Ctrl+\. Process will not goes into background
Expand All @@ -10,7 +12,7 @@
* @author Ondrej Esler <[email protected]>
* @license MIT
*/
class GracefulInterruptListenerTest extends \PHPUnit_Framework_TestCase
class GracefulInterruptListenerTest extends TestCase
{

/**
Expand Down

0 comments on commit 1351262

Please sign in to comment.