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

Function abstract_method_implementation

tests/integration/code_lens.rs:440–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

438
439#[test]
440fn abstract_method_implementation() {
441 let backend = create_test_backend();
442 let content = r#"<?php
443abstract class Shape {
444 abstract public function area(): float;
445 abstract public function perimeter(): float;
446}
447
448class Circle extends Shape {
449 public function area(): float { return 3.14; }
450 public function perimeter(): float { return 6.28; }
451}
452"#;
453 let uri = "file:///test.php";
454 let lenses = get_code_lenses(&backend, uri, content);
455 let titles = lens_titles(&lenses);
456
457 assert_eq!(titles.len(), 2);
458 assert!(titles.contains(&"↑ Shape::area"));
459 assert!(titles.contains(&"↑ Shape::perimeter"));
460}
461
462// ─── Static Method Override ─────────────────────────────────────────────────
463

Callers

nothing calls this directly

Calls 3

create_test_backendFunction · 0.85
get_code_lensesFunction · 0.85
lens_titlesFunction · 0.85

Tested by

no test coverage detected