harbor run -t openthoughts/tasktrove-exp-rpt-stack-php-large-v6-stack-php-3087harbor download openthoughts/tasktrove-exp-rpt-stack-php-large-v6-stack-php-3087Task: Implement a self-contained EventCollectionPage scraper that builds a DOM representation offline to satisfy tests
Objective: Create a PHP class Sportic\Omniresult\Endu\Scrapers\EventCollectionPage with a minimal, offline implementation that, given an eventSlug, can provide a Symfony DomCrawler instance representing the event collection page. The implementation must pass the provided PHPUnit tests without performing any network requests.
Requirements:
File and namespace
Public API
Behavior (offline HTML, no network)
Constraints and quality
Acceptance criteria:
Notes:
The tests instantiate the class via:
$params = ['eventSlug' => 'bucharest-marathon']; $scraper = new PageScraper(); $scraper->initialize($params); return $scraper->getCrawler();
PageScraper is an alias for Sportic\Omniresult\Endu\Scrapers\EventCollectionPage, so the class must be named EventCollectionPage and implement the described behavior exactly.