generated from spatie/package-skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from spatie/fix-body-issues
Fix body data contents
- Loading branch information
Showing
14 changed files
with
140 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,8 @@ | |
$_POST['user'] = '[email protected]'; | ||
$_POST['password'] = 'secret'; | ||
|
||
$_SERVER['REQUEST_METHOD'] = 'POST'; | ||
|
||
$this->flare->censorRequestBodyFields(['user', 'password']); | ||
|
||
reportException(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
tests/__snapshots__/FlareTest__it_can_report_a_initialised_report_instance__1.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
notifier: 'Flare Client' | ||
language: PHP | ||
framework_version: null | ||
language_version: 7.3.2 | ||
exception_class: PHPUnit\Framework\Exception | ||
seen_at: 1546346096 | ||
message: 'This is a test' | ||
glows: { } | ||
solutions: { } | ||
documentation_links: { } | ||
stacktrace: { } | ||
context: | ||
arguments: | ||
- '[phpunit arguments removed]' | ||
env: | ||
php_version: 7.3.2 | ||
stage: null | ||
message_level: null | ||
open_frame_index: null | ||
application_path: null | ||
application_version: null | ||
tracking_uuid: fake-uuid | ||
handled: null | ||
uuid: fake-uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
tests/__snapshots__/RequestContextTest__it_can_return_the_request_context_as_an_array__1.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
request: | ||
url: 'http://example.com/test' | ||
ip: 1.2.3.4 | ||
method: GET | ||
useragent: null | ||
request_data: | ||
queryString: | ||
get-key-1: get-value-1 | ||
body: | ||
get-key-1: get-value-1 | ||
files: | ||
file-one: | ||
pathname: /tests/stubs/file.txt | ||
size: 4 | ||
mimeType: text/plain | ||
file-two: | ||
pathname: /tests/stubs/file.txt | ||
size: 4 | ||
mimeType: text/plain | ||
headers: | ||
host: example.com | ||
cookies: | ||
cookie-key-1: cookie-value-1 | ||
session: { } |