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

Function test_hover_chained_blade

tests/integration/blade_debug.rs:394–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

392
393 #[tokio::test]
394 async fn test_hover_chained_blade() {
395 let backend = create_test_backend();
396 open_scaffolding(&backend).await;
397 let uri = open_blade(&backend).await;
398 // "diffForHumans" in "<p>{{ $post->created_at->diffForHumans() }}</p>"
399 // line 14, col 30
400 let text = hover_text(&backend, &uri, 14, 30).await;
401 assert!(
402 text.as_ref()
403 .is_some_and(|t| t.contains("diffForHumans") || t.contains("string")),
404 "Blade: hover on ->diffForHumans() should show info, got: {:?}",
405 text
406 );
407 }
408
409 // ── Foreach variable resolution ─────────────────────────────────────
410

Callers

nothing calls this directly

Calls 4

create_test_backendFunction · 0.85
open_scaffoldingFunction · 0.85
open_bladeFunction · 0.85
hover_textFunction · 0.70

Tested by

no test coverage detected