callsFor('notify'), 'Expected daemon transfer notify to have been called.'); } protected function responseFor(Request $request): ?PromiseInterface { if ($request->method() !== 'POST' || ! preg_match('#^/api/servers/([^/]+)/transfer$#', parse_url($request->url(), PHP_URL_PATH))) { return null; } $this->record('notify', ['url' => $request['url'], 'token' => $request['token']]); return $this->reply(); } }