@@ -60,46 +60,46 @@ public function testSetTimeout60()
60
60
public function testNoReplyWait ()
61
61
{
62
62
\r \js ('while(true) {} ' , 2.0 )->run ($ this ->conn , array ('noreply ' => true ));
63
- $ t = time (true );
63
+ $ t = microtime (true );
64
64
$ this ->conn ->noreplyWait ();
65
65
66
- $ this ->assertGreaterThan (1.5 , time (true ) - $ t );
66
+ $ this ->assertGreaterThan (1.5 , microtime (true ) - $ t );
67
67
}
68
68
69
69
public function testNoReplyReconnect ()
70
70
{
71
71
\r \js ('while(true) {} ' , 2.0 )->run ($ this ->conn , array ('noreply ' => true ));
72
- $ t = time (true );
72
+ $ t = microtime (true );
73
73
$ this ->conn ->reconnect ();
74
74
75
- $ this ->assertGreaterThan (1.5 , time (true ) - $ t );
75
+ $ this ->assertGreaterThan (1.5 , microtime (true ) - $ t );
76
76
}
77
77
78
78
public function testNoReplyClose ()
79
79
{
80
80
\r \js ('while(true) {} ' , 2.0 )->run ($ this ->conn , array ('noreply ' => true ));
81
- $ t = time (true );
81
+ $ t = microtime (true );
82
82
$ this ->conn ->close ();
83
83
84
- $ this ->assertGreaterThan (1.5 , time (true ) - $ t );
84
+ $ this ->assertGreaterThan (1.5 , microtime (true ) - $ t );
85
85
}
86
86
87
87
public function testNoReplyCloseImmediately ()
88
88
{
89
89
\r \js ('while(true) {} ' , 2.0 )->run ($ this ->conn , array ('noreply ' => true ));
90
- $ t = time (true );
90
+ $ t = microtime (true );
91
91
$ this ->conn ->close (false );
92
92
93
- $ this ->assertLessThan (0.5 , time (true ) - $ t );
93
+ $ this ->assertLessThan (0.5 , microtime (true ) - $ t );
94
94
}
95
95
96
96
public function testNoReplyReconnectImmediately ()
97
97
{
98
98
\r \js ('while(true) {} ' , 2.0 )->run ($ this ->conn , array ('noreply ' => true ));
99
- $ t = time (true );
99
+ $ t = microtime (true );
100
100
$ this ->conn ->reconnect (false );
101
101
102
- $ this ->assertLessThan (0.5 , time (true ) - $ t );
102
+ $ this ->assertLessThan (0.5 , microtime (true ) - $ t );
103
103
}
104
104
105
105
public function testServer ()
0 commit comments