locator = new PreciseElementLocator(); } public function testLocatesExactMatch(): void { $content = "\n\n
\n\n
\n\n"; $snippet = ''; $loc = $this->locator->locate($content, $snippet); $this->assertSame(4, $loc['line']); } public function testLocatesAttributeTokenMatch(): void { $content = "
\n\n
"; // Snippet with different whitespace/attr arrangement $snippet = '