File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 7
7
"php" : " >=5.4.0"
8
8
},
9
9
"require-dev" : {
10
- "phpunit/phpunit" : " ~4.8"
10
+ "phpunit/phpunit" : " ~4.8.35 || ^5.7 || ^6.4 "
11
11
},
12
12
"suggest" : {
13
13
"ext-libevent" : " >=0.1.0 for LibEventLoop and PHP5 only" ,
Original file line number Diff line number Diff line change @@ -154,7 +154,9 @@ protected function forkSendSignal($signal)
154
154
public function testSmallTimerInterval ()
155
155
{
156
156
/** @var StreamSelectLoop|\PHPUnit_Framework_MockObject_MockObject $loop */
157
- $ loop = $ this ->getMock ('React\EventLoop\StreamSelectLoop ' , ['streamSelect ' ]);
157
+ $ loop = $ this ->getMockBuilder ('React\EventLoop\StreamSelectLoop ' )
158
+ ->setMethods (['streamSelect ' ])
159
+ ->getMock ();
158
160
$ loop
159
161
->expects ($ this ->at (0 ))
160
162
->method ('streamSelect ' )
Original file line number Diff line number Diff line change 2
2
3
3
namespace React \Tests \EventLoop ;
4
4
5
+ use PHPUnit \Framework \TestCase as BaseTestCase ;
5
6
use React \EventLoop \LoopInterface ;
6
7
7
- class TestCase extends \PHPUnit_Framework_TestCase
8
+ class TestCase extends BaseTestCase
8
9
{
9
10
protected function expectCallableExactly ($ amount )
10
11
{
You can’t perform that action at this time.
0 commit comments