Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Jul 30, 2024
1 parent d77be76 commit 6785408
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Context/RequestContextProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function getRequestData(): array
];
}

protected function getInputSource(): InputBag
protected function getInputSource(): InputBag|ParameterBag
{
$contentType = $this->request->headers->get('CONTENT_TYPE', 'text/html');

Expand Down
1 change: 1 addition & 0 deletions tests/TestClasses/ReportDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ protected function removePhpunitArguments(array $data): array
protected function freezeLanguageVersion(array $data): array
{
data_set($data, 'language_version', '7.3.2', true);
data_set($data, 'context.env.php_version', '7.3.2', true);

return $data;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ context:
arguments:
- '[phpunit arguments removed]'
env:
php_version: 8.3.7
php_version: 7.3.2
stage: null
message_level: null
open_frame_index: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ context:
arguments:
- '[phpunit arguments removed]'
env:
php_version: 8.3.7
php_version: 7.3.2
stage: null
message_level: null
open_frame_index: null
Expand Down
2 changes: 2 additions & 0 deletions tests/__snapshots__/ReportTest__it_can_create_a_report__1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ stacktrace: { }
context:
arguments:
- '[phpunit arguments removed]'
env:
php_version: 7.3.2
stage: null
message_level: null
open_frame_index: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ stacktrace: { }
context:
arguments:
- '[phpunit arguments removed]'
env:
php_version: 7.3.2
stage: null
message_level: null
open_frame_index: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ stacktrace: { }
context:
arguments:
- '[phpunit arguments removed]'
env:
php_version: 7.3.2
stage: null
message_level: null
open_frame_index: null
Expand Down

0 comments on commit 6785408

Please sign in to comment.