Skip to content

Commit 2124cc3

Browse files
committed
test: fix risky test - add assertion count to testGCRejectsNonInt
1 parent fc5d53c commit 2124cc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/system/Session/Handlers/Database/AbstractHandlerTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function testGCRejectsNonInt(): void
134134
$handler->gc($malicious); // @phpstan-ignore argument.type
135135
$this->fail('TypeError expected for value: ' . gettype($malicious));
136136
} catch (TypeError) {
137-
// Expected — type hint blocks SQL injection
137+
$this->addToAssertionCount(1);
138138
}
139139
}
140140
}

0 commit comments

Comments
 (0)