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

Function open_php_equivalent

tests/integration/blade_debug.rs:102–115  ·  view source on GitHub ↗
(backend: &phpantom_lsp::Backend)

Source from the content-addressed store, hash-verified

100 }
101
102 async fn open_php_equivalent(backend: &phpantom_lsp::Backend) -> String {
103 let uri = "file:///equivalent.php";
104 backend
105 .did_open(DidOpenTextDocumentParams {
106 text_document: TextDocumentItem {
107 uri: Url::parse(uri).unwrap(),
108 language_id: "php".to_string(),
109 version: 1,
110 text: PHP_EQUIVALENT.to_string(),
111 },
112 })
113 .await;
114 uri.to_string()
115 }
116
117 // ── Helper: hover at a position and return the hover text ───────────
118

Callers 5

test_hover_author_phpFunction · 0.85
test_gtd_author_name_phpFunction · 0.85
test_hover_post_phpFunction · 0.85
test_gtd_get_title_phpFunction · 0.85
test_hover_chained_phpFunction · 0.85

Calls 2

did_openMethod · 0.45
unwrapMethod · 0.45

Tested by 5

test_hover_author_phpFunction · 0.68
test_gtd_author_name_phpFunction · 0.68
test_hover_post_phpFunction · 0.68
test_gtd_get_title_phpFunction · 0.68
test_hover_chained_phpFunction · 0.68