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

Function parent_class_method_override

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

Source from the content-addressed store, hash-verified

19
20#[test]
21fn parent_class_method_override() {
22 let backend = create_test_backend();
23 let content = r#"<?php
24class Animal {
25 public function speak(): string { return ''; }
26 public function eat(): void {}
27}
28
29class Dog extends Animal {
30 public function speak(): string { return 'woof'; }
31}
32"#;
33 let uri = "file:///test.php";
34 let lenses = get_code_lenses(&backend, uri, content);
35 let titles = lens_titles(&lenses);
36
37 assert_eq!(titles.len(), 1);
38 assert_eq!(titles[0], "↑ Animal::speak");
39}
40
41#[test]
42fn interface_method_implementation() {

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