assertEquals($expected, $response->getStatus()); } public function providesStatusCodes(): array { return [ [Http::STATUS_OK, 200], [Http::STATUS_BAD_REQUEST, 104], [Http::STATUS_BAD_REQUEST, 1000], [201, 201], [Http::STATUS_UNAUTHORIZED, OCSController::RESPOND_UNAUTHORISED], [Http::STATUS_INTERNAL_SERVER_ERROR, OCSController::RESPOND_SERVER_ERROR], [Http::STATUS_NOT_FOUND, OCSController::RESPOND_NOT_FOUND], [Http::STATUS_INTERNAL_SERVER_ERROR, OCSController::RESPOND_UNKNOWN_ERROR], ]; } }