Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.140.254.100
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
react /
event-loop /
tests /
Timer /
Delete
Unzip
Name
Size
Permission
Date
Action
AbstractTimerTest.php
3.5
KB
-rw-r--r--
2018-07-11 09:00
ExtEvTimerTest.php
363
B
-rw-r--r--
2018-07-11 09:00
ExtEventTimerTest.php
368
B
-rw-r--r--
2018-07-11 09:00
ExtLibevTimerTest.php
370
B
-rw-r--r--
2018-07-11 09:00
ExtLibeventTimerTest.php
387
B
-rw-r--r--
2018-07-11 09:00
StreamSelectTimerTest.php
228
B
-rw-r--r--
2018-07-11 09:00
TimersTest.php
929
B
-rw-r--r--
2018-07-11 09:00
Save
Rename
<?php namespace React\Tests\EventLoop\Timer; use React\Tests\EventLoop\TestCase; use React\EventLoop\Timer\Timer; use React\EventLoop\Timer\Timers; class TimersTest extends TestCase { public function testBlockedTimer() { $timers = new Timers(); $timers->tick(); // simulate a bunch of processing on stream events, // part of which schedules a future timer... sleep(1); $timers->add(new Timer(0.5, function () { $this->fail("Timer shouldn't be called"); })); $timers->tick(); $this->assertTrue(true); } public function testContains() { $timers = new Timers(); $timer1 = new Timer(0.1, function () {}); $timer2 = new Timer(0.1, function () {}); $timers->add($timer1); self::assertTrue($timers->contains($timer1)); self::assertFalse($timers->contains($timer2)); } }