test: cast node name and data to string

Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
Anna Larch 2024-09-15 18:34:42 +02:00
parent 3fe3f8d1f6
commit eb8cec2b96

View file

@ -57,9 +57,9 @@ class AssemblyStreamTest extends \Test\TestCase {
$tonofnodes = [];
$tonofdata = '';
for ($i = 0; $i < 101; $i++) {
$thisdata = rand(0, 100); // variable length and content
$thisdata = random_int(0, 100); // variable length and content
$tonofdata .= $thisdata;
array_push($tonofnodes, $this->buildNode($i, $thisdata));
$tonofnodes[] = $this->buildNode((string)$i, (string)$thisdata);
}
return[