()
| 2403 | |
| 2404 | #[test] |
| 2405 | fn symbols_method_not_captured() { |
| 2406 | let content = br"<?php |
| 2407 | class Foo { |
| 2408 | public function bar(): void {} |
| 2409 | } |
| 2410 | "; |
| 2411 | let result = find_symbols(content); |
| 2412 | assert_eq!(result.classes, vec!["Foo"]); |
| 2413 | assert!( |
| 2414 | result.functions.is_empty(), |
| 2415 | "methods should not appear as functions: {:?}", |
| 2416 | result.functions |
| 2417 | ); |
| 2418 | } |
| 2419 | |
| 2420 | #[test] |
| 2421 | fn symbols_define_single_quote() { |
nothing calls this directly
no test coverage detected