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

Function test_hover_chained_php

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

Source from the content-addressed store, hash-verified

376
377 #[tokio::test]
378 async fn test_hover_chained_php() {
379 let backend = create_test_backend();
380 open_scaffolding(&backend).await;
381 let uri = open_php_equivalent(&backend).await;
382 // "diffForHumans" in "echo e( $post->created_at->diffForHumans() );"
383 // line 9, col 27
384 let text = hover_text(&backend, &uri, 9, 27).await;
385 assert!(
386 text.as_ref()
387 .is_some_and(|t| t.contains("diffForHumans") || t.contains("string")),
388 "PHP: hover on ->diffForHumans() should show info, got: {:?}",
389 text
390 );
391 }
392
393 #[tokio::test]
394 async fn test_hover_chained_blade() {

Callers

nothing calls this directly

Calls 4

create_test_backendFunction · 0.85
open_scaffoldingFunction · 0.85
open_php_equivalentFunction · 0.85
hover_textFunction · 0.70

Tested by

no test coverage detected