多🌹444收拾收拾计算机视觉手机手机手机手机4大尺寸惆怅长岑长 ??????????????????????????С??????????????P??????????????????????????????????????????????????????^?????????? ????j?????????? ? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!PKfCW]„ Èб ± MagicResponseTest.phpnu„[µü¤statusCode())->toBe(419); }); it('returns correct status', function () { expect(MagicResponse::NO_CREDITS_LEFT->status())->toBe('error'); }); it('returns correct response type', function () { expect(MagicResponse::NO_CREDITS_LEFT->responseType())->toBe('json'); }); it('returns correct message', function () { $expectedMessage = [ 'message' => __('You have no credits left. Please consider upgrading your plan.'), 'status' => 'error', ]; expect(MagicResponse::NO_CREDITS_LEFT->message())->toBe($expectedMessage); }); it('returns correct response', function () { $response = MagicResponse::NO_CREDITS_LEFT->response(); expect($response) ->toBeInstanceOf(JsonResponse::class) ->and($response->getStatusCode())->toBe(419) ->and($response->getData(true))->toBe([ 'message' => __('You have no credits left. Please consider upgrading your plan.'), 'status' => 'error', ]); }); it('throws correct exception - as json', function () { MagicResponse::NO_CREDITS_LEFT->exception(); })->throwsIf(MagicResponse::NO_CREDITS_LEFT->exceptionsAsJson(), MagicResponseApiException::class, 'You have no credits left. Please consider upgrading your plan.', 419) ->todo(); it('throws correct exception', function () { MagicResponse::NO_CREDITS_LEFT->exception(); })->throwsUnless(MagicResponse::NO_CREDITS_LEFT->exceptionsAsJson(), Exception::class, 'You have no credits left. Please consider upgrading your plan.', 419); it('throws correct runtime exception - as json', function () { MagicResponse::NO_CREDITS_LEFT->runtimeException(); })->throwsIf(MagicResponse::NO_CREDITS_LEFT->exceptionsAsJson(), MagicResponseApiRuntimeException::class, 'You have no credits left. Please consider upgrading your plan.', 419) ->todo(); it('throws correct runtime exception', function () { MagicResponse::NO_CREDITS_LEFT->runtimeException(); })->throwsUnless(MagicResponse::NO_CREDITS_LEFT->exceptionsAsJson(), RuntimeException::class, 'You have no credits left. Please consider upgrading your plan.', 419); it('aborts correctly - as json')->todo(); it('aborts correctly', function () { MagicResponse::NO_CREDITS_LEFT->abort(); })->throwsIf(MagicResponse::NO_CREDITS_LEFT->responseType() !== 'json', Exception::class, 'You have no credits left. Please consider upgrading your plan.', 419) ->todo(); it('aborts if correctly', function () { MagicResponse::NO_CREDITS_LEFT->abort_if(true); })->throwsIf(MagicResponse::NO_CREDITS_LEFT->responseType() !== 'json', Exception::class, 'You have no credits left. Please consider upgrading your plan.', 419) ->todo(); it('aborts unless condition is false', function () { MagicResponse::NO_CREDITS_LEFT->abort_unless(false); })->throwsIf(MagicResponse::NO_CREDITS_LEFT->responseType() !== 'json', Exception::class, 'You have no credits left. Please consider upgrading your plan.', 419) ->todo(); PKfCW]„ Èб ± MagicResponseTest.phpnu„[µü¤PKUö