()
| 840 | |
| 841 | #[test] |
| 842 | fn finds_no_docblock() { |
| 843 | let php = "<?php\nclass Foo {\n public function bar(): void {\n throw new \\RuntimeException();\n }\n}\n"; |
| 844 | // diag_line = 3 |
| 845 | let info = find_enclosing_docblock(php, 3).unwrap(); |
| 846 | assert!(!info.has_docblock); |
| 847 | assert_eq!(info.indent, " "); |
| 848 | } |
| 849 | |
| 850 | // ── build_throws_edit (into existing docblock) ────────────────── |
| 851 |
nothing calls this directly
no test coverage detected