diff --git a/tests/Client/Http/RequestFactoryTest.php b/tests/Client/Http/RequestFactoryTest.php index cc41442..4f987e8 100644 --- a/tests/Client/Http/RequestFactoryTest.php +++ b/tests/Client/Http/RequestFactoryTest.php @@ -78,6 +78,9 @@ public function testParamParsed(): void new Psr17Factory(), ); + $now = new DateTimeImmutable(); + $nowDate = $now->format('Y-m-d'); + $request = $requestFactory->prepareSqlRequest( 'SELECT {p1:String}, {p_2:Date}', new RequestSettings( @@ -87,7 +90,7 @@ public function testParamParsed(): void new RequestOptions( [ 'p1' => 'value1', - 'p_2' => new DateTimeImmutable(), + 'p_2' => $now, ], ), ); @@ -101,7 +104,7 @@ public function testParamParsed(): void 'Content-Disposition: form-data; name="param_p_2"', 'Content-Length: 10', '', - '2025-01-23', + $nowDate, ], ), $body,