(source: string)
| 164 | |
| 165 | describe('a #[Hook] attribute', () => { |
| 166 | const hooks = (source: string): string[] => |
| 167 | extract('src/Hook/ShopHooks.php', source).references.map((r) => `${r.referenceName}@${r.line}`); |
| 168 | |
| 169 | it('links the method it marks, from the line the attribute starts on, where the method\'s node starts', () => { |
| 170 | expect(hooks(`<?php |
no test coverage detected