We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0012313 commit 15c9856Copy full SHA for 15c9856
tests/Client/Http/RequestFactoryTest.php
@@ -78,6 +78,9 @@ public function testParamParsed(): void
78
new Psr17Factory(),
79
);
80
81
+ $now = new DateTimeImmutable();
82
+ $nowDate = $now->format('Y-m-d');
83
+
84
$request = $requestFactory->prepareSqlRequest(
85
'SELECT {p1:String}, {p_2:Date}',
86
new RequestSettings(
@@ -87,7 +90,7 @@ public function testParamParsed(): void
87
90
new RequestOptions(
88
91
[
89
92
'p1' => 'value1',
- 'p_2' => new DateTimeImmutable(),
93
+ 'p_2' => $now,
94
],
95
),
96
@@ -101,7 +104,7 @@ public function testParamParsed(): void
101
104
'Content-Disposition: form-data; name="param_p_2"',
102
105
'Content-Length: 10',
103
106
'',
- '2025-01-23',
107
+ $nowDate,
108
109
110
$body,
0 commit comments