File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ public function testSplitFailsWhenFileDoesNotExist(): void
259259 // Should display error message
260260 $ output = $ this ->commandTester ->getDisplay ();
261261 $ this ->assertStringContainsString ('File not found ' , $ output );
262- $ this ->assertStringContainsString ($ nonExistentFile , $ output );
262+ $ this ->assertStringContainsString (' nonexistent.har ' , $ output );
263263 }
264264
265265 public function testSplitFailsWhenPathIsDirectory (): void
@@ -279,7 +279,7 @@ public function testSplitFailsWhenPathIsDirectory(): void
279279 // Should display error message indicating it's a directory
280280 $ output = $ this ->commandTester ->getDisplay ();
281281 $ this ->assertStringContainsString ('Path is a directory ' , $ output );
282- $ this ->assertStringContainsString ($ directoryPath , $ output );
282+ $ this ->assertStringContainsString (' notafile ' , $ output );
283283 }
284284
285285 private function recursiveRemoveDirectory (string $ directory ): void
Original file line number Diff line number Diff line change 1212use Deviantintegral \Har \Response ;
1313use Deviantintegral \Har \Serializer ;
1414use GuzzleHttp \Client ;
15+ use GuzzleHttp \RequestOptions ;
1516use PHPUnit \Framework \TestCase ;
1617
1718class ReadmeTest extends TestCase
@@ -33,7 +34,9 @@ public function testExample()
3334
3435 // Send the request live!
3536 try {
36- $ psr7_response = (new Client ())->send ($ psr7_request );
37+ $ psr7_response = (new Client ())->send ($ psr7_request , [
38+ RequestOptions::TIMEOUT => 5 ,
39+ ]);
3740
3841 // Convert the response back to a HAR response object.
3942 $ response = Response::fromPsr7Response ($ psr7_response );
You can’t perform that action at this time.
0 commit comments