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\
2020
2121 public static function setUpBeforeClass () : void
2222 {
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 ;
2525
2626 if (! \filter_var ($ url , FILTER_VALIDATE_URL ))
2727 {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function __construct(?int $microseconds = 0)
3232
3333 if ($ microseconds )
3434 {
35- $ this ->microseconds = 1.0 / 1000000 .0 * $ microseconds ;
35+ $ this ->microseconds = 1.0 / 1_000_000 .0 * $ microseconds ;
3636 }
3737 }
3838
@@ -49,7 +49,7 @@ public function delay() : void
4949
5050 if ($ timeDifference < $ this ->microseconds )
5151 {
52- \usleep ((int )(($ this ->microseconds - $ timeDifference ) * 1000000 .0 ));
52+ \usleep ((int )(($ this ->microseconds - $ timeDifference ) * 1_000_000 .0 ));
5353 }
5454 $ this ->lastAccessed = $ now = \microtime (true );
5555 }
You can’t perform that action at this time.
0 commit comments