()
| 342 | |
| 343 | #[test] |
| 344 | fn context_constructor() { |
| 345 | let content = "<?php\nnew Foo("; |
| 346 | let pos = Position { |
| 347 | line: 1, |
| 348 | character: 8, |
| 349 | }; |
| 350 | let ctx = detect_named_arg_context(content, pos); |
| 351 | assert!(ctx.is_some()); |
| 352 | assert_eq!(ctx.unwrap().call_expression, "new Foo"); |
| 353 | } |
| 354 | |
| 355 | #[test] |
| 356 | fn no_context_typing_variable() { |
nothing calls this directly
no test coverage detected