()
| 92 | |
| 93 | #[tokio::test] |
| 94 | async fn hint_kind_is_parameter() { |
| 95 | let backend = create_test_backend(); |
| 96 | let uri = Url::parse("file:///test/inlay.php").unwrap(); |
| 97 | let text = r#"<?php |
| 98 | function foo(string $bar): void {} |
| 99 | foo('hello'); |
| 100 | "#; |
| 101 | |
| 102 | let hints = inlay_hints_for(&backend, &uri, text).await; |
| 103 | assert_eq!(hints.len(), 1); |
| 104 | assert_eq!(hints[0].kind, Some(InlayHintKind::PARAMETER)); |
| 105 | } |
| 106 | |
| 107 | // ─── Suppression: variable name matches parameter name ────────────────────── |
| 108 |
nothing calls this directly
no test coverage detected