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

Function context_static_call

tests/unit/named_args_internals.rs:332–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330
331#[test]
332fn context_static_call() {
333 let content = "<?php\nCache::get(";
334 let pos = Position {
335 line: 1,
336 character: 11,
337 };
338 let ctx = detect_named_arg_context(content, pos);
339 assert!(ctx.is_some());
340 assert_eq!(ctx.unwrap().call_expression, "Cache::get");
341}
342
343#[test]
344fn context_constructor() {

Callers

nothing calls this directly

Calls 1

detect_named_arg_contextFunction · 0.85

Tested by

no test coverage detected