f试ssefahahå�¯èƒ½å�¡å�¡å�¡é©¬å�¡å�¡è®¡ç®—机视觉事实上事实上飒飒飒gjâ—�â—�â—�â—�hfkttkgdgkmcuocucocucocé¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶uco朵朵å�¯å�¯æ”¾2å·�峨2555555666369🌹 �����ѩ�����һ����dddf2qevf2fv69666 ? 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ö