MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / check

Function check

examples/laravel/assertions.php:26–35  ·  view source on GitHub ↗
(string $label, bool $condition)

Source from the content-addressed store, hash-verified

24$failed = 0;
25
26function check(string $label, bool $condition): void
27{
28 global $passed, $failed;
29 if ($condition) {
30 $passed++;
31 } else {
32 $failed++;
33 echo "FAIL: $label\n";
34 }
35}
36
37function assertMethodVisibility(string $class, string $method, string $expected): void
38{

Callers 3

assertMethodVisibilityFunction · 0.85
assertMethodReturnTypeFunction · 0.85
assertions.phpFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected