()
| 1250 | |
| 1251 | #[test] |
| 1252 | fn symbol_info_readonly_property() { |
| 1253 | let content = concat!( |
| 1254 | "<?php\nclass Foo {\n", |
| 1255 | " /**\n", |
| 1256 | " * @\n", |
| 1257 | " */\n", |
| 1258 | " public readonly string $name;\n", |
| 1259 | "}\n", |
| 1260 | ); |
| 1261 | let pos = Position { |
| 1262 | line: 3, |
| 1263 | character: 8, |
| 1264 | }; |
| 1265 | let info = extract_symbol_info(content, pos); |
| 1266 | assert_eq!(info.type_hint, Some(PhpType::parse("string"))); |
| 1267 | } |
| 1268 | |
| 1269 | #[test] |
| 1270 | fn symbol_info_variadic_param() { |
nothing calls this directly
no test coverage detected