Skip to content

Commit 6b1d060

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: random: Add additional test for Randomizer::getFloat() (#12436)
2 parents 3ff3199 + ac0b9bf commit 6b1d060

File tree

3 files changed

+460
-12
lines changed

3 files changed

+460
-12
lines changed

ext/random/tests/02_engine/all_serialize_user.phpt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,13 @@ Random: Engine: Serialization of user engines must preserve the sequence
44
<?php
55

66
use Random\Engine;
7+
use Random\Engine\Test\TestCountingEngine32;
78
use Random\Engine\Test\TestShaEngine;
89

910
require __DIR__ . "/../engines.inc";
1011

11-
final class CountingEngine32 implements Engine
12-
{
13-
private int $count = 0;
14-
15-
public function generate(): string
16-
{
17-
return pack('V', ++$this->count);
18-
}
19-
}
20-
2112
$engines = [];
22-
$engines[] = new CountingEngine32();
13+
$engines[] = new TestCountingEngine32();
2314
$engines[] = new TestShaEngine();
2415
$iterations = getenv("SKIP_SLOW_TESTS") ? 3_000 : 10_000;
2516

@@ -43,6 +34,6 @@ die('success');
4334

4435
?>
4536
--EXPECT--
46-
CountingEngine32
37+
Random\Engine\Test\TestCountingEngine32
4738
Random\Engine\Test\TestShaEngine
4839
success

0 commit comments

Comments
 (0)