Skip to content

Commit

Permalink
Adapt to phpunit 6
Browse files Browse the repository at this point in the history
  • Loading branch information
mkraemer committed Jul 24, 2017
1 parent b410b6e commit d6ac9a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"react/event-loop": "0.4.*"
},
"require-dev": {
"satooshi/php-coveralls": "^1.0"
"satooshi/php-coveralls": "^1.0",
"phpunit/phpunit": "^6.2"
}
}
7 changes: 3 additions & 4 deletions test/MKraemer/ReactPCNTL/PCNTLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function pcntl_signal_dispatch() {
PCNTLTest::$pcntl_signal_dispatch = true;
}

class PCNTLTest extends \PHPUnit_Framework_TestCase
class PCNTLTest extends \PHPUnit\Framework\TestCase
{
public static $pcntl_signal_args;
public static $pcntl_signal_dispatch;
Expand All @@ -23,13 +23,12 @@ protected function setUp()
{
self::$pcntl_signal_args = array();
self::$pcntl_signal_dispatch = false;
$this->loop = $this->getMock('React\EventLoop\LoopInterface');
$this->loop = $this->createMock('React\EventLoop\LoopInterface');
}


public function testLoopStartStop()
{
$timer = $this->getMock('React\EventLoop\Timer\TimerInterface');
$timer = $this->createMock('React\EventLoop\Timer\TimerInterface');
$this->loop->expects($this->exactly(2))
->method('addPeriodicTimer')
->with(0.1, $this->isType('callable'))
Expand Down

0 comments on commit d6ac9a6

Please sign in to comment.