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

Function self_static_parent_tracked

src/scope_collector/tests.rs:456–466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

454
455#[test]
456fn self_static_parent_tracked() {
457 let php = r#"<?php
458class Foo {
459 public function test() {
460 $x = self::VALUE;
461 }
462}
463"#;
464 let scope_map = collect_from_method(php);
465 assert!(scope_map.has_this_or_self);
466}
467
468#[test]
469fn no_this_when_absent() {

Callers

nothing calls this directly

Calls 1

collect_from_methodFunction · 0.85

Tested by

no test coverage detected