()
| 454 | |
| 455 | #[test] |
| 456 | fn self_static_parent_tracked() { |
| 457 | let php = r#"<?php |
| 458 | class 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] |
| 469 | fn no_this_when_absent() { |
nothing calls this directly
no test coverage detected