diff --git a/composer.json b/composer.json index 67060367..e39df9ab 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "php": ">=5.4.0" }, "require-dev": { - "phpunit/phpunit": "~4.8" + "phpunit/phpunit": "~4.8.35 || ^5.7 || ^6.4" }, "suggest": { "ext-libevent": ">=0.1.0 for LibEventLoop and PHP5 only", diff --git a/tests/StreamSelectLoopTest.php b/tests/StreamSelectLoopTest.php index 9927ca2b..1c5cff98 100644 --- a/tests/StreamSelectLoopTest.php +++ b/tests/StreamSelectLoopTest.php @@ -154,7 +154,9 @@ protected function forkSendSignal($signal) public function testSmallTimerInterval() { /** @var StreamSelectLoop|\PHPUnit_Framework_MockObject_MockObject $loop */ - $loop = $this->getMock('React\EventLoop\StreamSelectLoop', ['streamSelect']); + $loop = $this->getMockBuilder('React\EventLoop\StreamSelectLoop') + ->setMethods(['streamSelect']) + ->getMock(); $loop ->expects($this->at(0)) ->method('streamSelect') diff --git a/tests/TestCase.php b/tests/TestCase.php index 0bc26a40..dbdd54ce 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,9 +2,10 @@ namespace React\Tests\EventLoop; +use PHPUnit\Framework\TestCase as BaseTestCase; use React\EventLoop\LoopInterface; -class TestCase extends \PHPUnit_Framework_TestCase +class TestCase extends BaseTestCase { protected function expectCallableExactly($amount) {
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: