Skip to content

Commit fdc5854

Browse files
committed
refactor: melhorar a legibilidade das mensagens de teste e formatação de código
1 parent a09adc6 commit fdc5854

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

tests/Integration/Core/ApplicationCoreIntegrationTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ public function testConcurrentRequestPerformance(): void
220220
) || getenv('SKIP_PERFORMANCE_TESTS') === 'true';
221221

222222
if ($isVerySlowEnvironment) {
223-
$this->markTestSkipped('Skipping concurrent performance test in very slow environment (coverage/debugging)');
223+
$this->markTestSkipped(
224+
'Skipping concurrent performance test in very slow environment (coverage/debugging)'
225+
);
224226
}
225227

226228
// Enable high performance mode for better concurrency

tests/Integration/V11ComponentsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ function ($req, $res) {
228228
0,
229229
$results['rate_limited'] + $results['shed'],
230230
sprintf(
231-
'Either rate limiter or load shedder should trigger. Results: success=%d, rate_limited=%d, shed=%d, total=%d',
231+
'Either rate limiter or load shedder should trigger. Results: success=%d, rate_limited=%d,' .
232+
' shed=%d, total=%d',
232233
$results['success'],
233234
$results['rate_limited'],
234235
$results['shed'],

tests/Utils/SerializationCacheTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ public function testGetTotalSerializedSizeWithCustomKeys(): void
145145
$afterFirstStats = SerializationCache::getStats();
146146

147147
// Be more permissive about the exact counts, but ensure we have the minimum expected
148-
$this->assertGreaterThanOrEqual(2, $afterFirstStats['cache_misses'], 'Should have at least 2 cache misses after first call');
148+
$this->assertGreaterThanOrEqual(
149+
2,
150+
$afterFirstStats['cache_misses'],
151+
'Should have at least 2 cache misses after first call'
152+
);
149153
$this->assertEquals(0, $afterFirstStats['cache_hits'], 'Should have 0 cache hits after first call');
150154

151155
// Record the stats after first call for delta calculation

0 commit comments

Comments
 (0)