()
| 1706 | |
| 1707 | #[test] |
| 1708 | fn template_default_null() { |
| 1709 | let doc = concat!("/**\n", " * @template TValue of mixed = null\n", " */",); |
| 1710 | let result = extract_template_params_full(doc); |
| 1711 | assert_eq!(result.len(), 1); |
| 1712 | let (name, bound, _, default) = &result[0]; |
| 1713 | assert_eq!(name, "TValue"); |
| 1714 | assert_eq!(*bound, Some(PhpType::parse("mixed"))); |
| 1715 | assert_eq!(*default, Some(PhpType::parse("null"))); |
| 1716 | } |
| 1717 | |
| 1718 | #[test] |
| 1719 | fn template_no_default() { |
nothing calls this directly
no test coverage detected