File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -156,15 +156,15 @@ protected function forkSendSignal($signal)
156156 public function testSmallTimerInterval ()
157157 {
158158 /** @var StreamSelectLoop|\PHPUnit_Framework_MockObject_MockObject $loop */
159- $ loop = $ this ->getMock ('React\EventLoop\StreamSelectLoop ' , ['streamSelect ' ]);
159+ $ loop = $ this ->getMock ('React\EventLoop\StreamSelectLoop ' , ['sleep ' ]);
160160 $ loop
161161 ->expects ($ this ->at (0 ))
162- ->method ('streamSelect ' )
163- ->with ([], [], 1 );
162+ ->method ('sleep ' )
163+ ->with (0 , intval (Timer:: MIN_INTERVAL * StreamSelectLoop:: NANOSECONDS_PER_SECOND ) );
164164 $ loop
165165 ->expects ($ this ->at (1 ))
166- ->method ('streamSelect ' )
167- ->with ([], [] , 0 );
166+ ->method ('sleep ' )
167+ ->with (0 , 0 );
168168
169169 $ callsCount = 0 ;
170170 $ loop ->addPeriodicTimer (Timer::MIN_INTERVAL , function () use (&$ loop , &$ callsCount ) {
You can’t perform that action at this time.
0 commit comments