()
| 2190 | |
| 2191 | #[test] |
| 2192 | fn parses_no_params() { |
| 2193 | let text = "function test(): void {}"; |
| 2194 | let info = parse_declaration_info(text); |
| 2195 | assert!(info.params.is_empty()); |
| 2196 | assert_eq!(info.return_type, Some(PhpType::parse("void"))); |
| 2197 | } |
| 2198 | |
| 2199 | #[test] |
| 2200 | fn parses_property_type() { |
nothing calls this directly
no test coverage detected