()
| 387 | |
| 388 | #[tokio::test] |
| 389 | async fn static_method_call() { |
| 390 | let backend = create_test_backend(); |
| 391 | let uri = Url::parse("file:///test/inlay.php").unwrap(); |
| 392 | let text = r#"<?php |
| 393 | class Greeter { |
| 394 | public static function greet(string $name, int $age): void {} |
| 395 | } |
| 396 | Greeter::greet('Alice', 25); |
| 397 | "#; |
| 398 | |
| 399 | let hints = inlay_hints_for(&backend, &uri, text).await; |
| 400 | let line_hints = hints_at_line(&hints, 4); |
| 401 | |
| 402 | let lbls = labels(&line_hints); |
| 403 | assert!(lbls.contains(&"name:".to_string()), "expected name: hint"); |
| 404 | assert!(lbls.contains(&"age:".to_string()), "expected age: hint"); |
| 405 | } |
| 406 | |
| 407 | #[tokio::test] |
| 408 | async fn constructor_call() { |
nothing calls this directly
no test coverage detected