()
| 1732 | |
| 1733 | #[tokio::test] |
| 1734 | async fn test_parse_defines_inside_block() { |
| 1735 | let backend = create_test_backend(); |
| 1736 | let content = concat!("<?php\n", "{\n", " define('BLOCK_CONST', 1);\n", "}\n",); |
| 1737 | let defines = backend.parse_defines(content); |
| 1738 | let names: Vec<&str> = defines.iter().map(|(n, _, _)| n.as_str()).collect(); |
| 1739 | assert_eq!(names, vec!["BLOCK_CONST"]); |
| 1740 | } |
| 1741 | |
| 1742 | #[tokio::test] |
| 1743 | async fn test_parse_defines_mixed_with_classes_and_functions() { |
nothing calls this directly
no test coverage detected