()
| 1232 | |
| 1233 | #[test] |
| 1234 | fn symbol_info_nullable_property() { |
| 1235 | let content = concat!( |
| 1236 | "<?php\nclass Foo {\n", |
| 1237 | " /**\n", |
| 1238 | " * @\n", |
| 1239 | " */\n", |
| 1240 | " protected ?int $count = 0;\n", |
| 1241 | "}\n", |
| 1242 | ); |
| 1243 | let pos = Position { |
| 1244 | line: 3, |
| 1245 | character: 8, |
| 1246 | }; |
| 1247 | let info = extract_symbol_info(content, pos); |
| 1248 | assert_eq!(info.type_hint, Some(PhpType::parse("?int"))); |
| 1249 | } |
| 1250 | |
| 1251 | #[test] |
| 1252 | fn symbol_info_readonly_property() { |
nothing calls this directly
no test coverage detected