public function testPurge(array $locationIds) { $this->cacheManager->expects($this->once())->method('invalidate')->with(array('X-Location-Id' => '^(' . implode('|', $locationIds) . ')$')); $this->purgeClient->purge($locationIds); }