File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/PHPFUI/HTMLUnitTester Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ class Extensions extends \PHPUnit\Framework\TestCase implements \PHPUnit\Runner\
20
20
21
21
public static function setUpBeforeClass () : void
22
22
{
23
- $ url = $ _ENV [__CLASS__ . '_url ' ] ?? 'http://127.0.0.1:8888 ' ;
24
- $ throttleMicroSeconds = $ _ENV [__CLASS__ . '_delay ' ] ?? 0 ;
23
+ $ url = $ _ENV [self ::class . '_url ' ] ?? 'http://127.0.0.1:8888 ' ;
24
+ $ throttleMicroSeconds = $ _ENV [self ::class . '_delay ' ] ?? 0 ;
25
25
26
26
if (! \filter_var ($ url , FILTER_VALIDATE_URL ))
27
27
{
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function __construct(?int $microseconds = 0)
32
32
33
33
if ($ microseconds )
34
34
{
35
- $ this ->microseconds = 1.0 / 1000000 .0 * $ microseconds ;
35
+ $ this ->microseconds = 1.0 / 1_000_000 .0 * $ microseconds ;
36
36
}
37
37
}
38
38
@@ -49,7 +49,7 @@ public function delay() : void
49
49
50
50
if ($ timeDifference < $ this ->microseconds )
51
51
{
52
- \usleep ((int )(($ this ->microseconds - $ timeDifference ) * 1000000 .0 ));
52
+ \usleep ((int )(($ this ->microseconds - $ timeDifference ) * 1_000_000 .0 ));
53
53
}
54
54
$ this ->lastAccessed = $ now = \microtime (true );
55
55
}
You can’t perform that action at this time.
0 commit comments