-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -14,7 +14,7 @@ | |
* @author Ondrej Esler <[email protected]> | ||
* @license MIT | ||
*/ | ||
class GracefulInterruptListener extends PHPUnit_Framework_BaseTestListener | ||
class GracefulInterruptListener extends BaseTestListener | ||
{ | ||
|
||
/** | ||
|
@@ -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(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -10,7 +12,7 @@ | |
* @author Ondrej Esler <[email protected]> | ||
* @license MIT | ||
*/ | ||
class GracefulInterruptListenerTest extends \PHPUnit_Framework_TestCase | ||
class GracefulInterruptListenerTest extends TestCase | ||
{ | ||
|
||
/** | ||
|