Skip to content

Commit

Permalink
Fix PHPStan issues
Browse files Browse the repository at this point in the history
Signed-off-by: Garry Filakhtov <[email protected]>
  • Loading branch information
filakhtov committed Sep 30, 2024
1 parent 0e837ea commit b53d9bc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/Test/Prometheus/Storage/APCngTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,10 @@ public function nonStringLabelValuesAreCastToStrings(): void
'int_label_values',
'test int label values',
['int_label'],
)->inc([3]);
)->incBy(3, [3]);

$jsonLabels = json_encode(["3"]);
$encodedLabels = base64_encode($jsonLabels);

$counter = apcu_fetch("prom:counter:ns_int_label_values:{$encodedLabels}:value");
$this->assertSame(1000, $counter);
$counter = apcu_fetch("prom:counter:ns_int_label_values:WyIzIl0=:value");
self::assertSame(3000, $counter);
}

/**
Expand Down

0 comments on commit b53d9bc

Please sign in to comment.