Skip to content

Commit a70a98f

Browse files
committed
Rector 8.0
1 parent bf87c81 commit a70a98f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/PHPFUI/HTMLUnitTester/Extensions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
{

src/PHPFUI/HTMLUnitTester/Throttle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)