Skip to content

Commit 5f132d3

Browse files
committed
Harden insecure precedence test with nonexistent CA cert path
1 parent 5f08ec0 commit 5f132d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/TransportOptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testDefaultHeadersSetsHeaders(): void
4343

4444
public function testInsecureTakesPrecedenceOverCaCert(): void
4545
{
46-
$opts = new TransportOptions(caCertPath: '/path/to/ca.pem', insecure: true);
46+
$opts = new TransportOptions(caCertPath: '/nonexistent/ca.pem', insecure: true);
4747
$result = $opts->toGuzzleOptions();
4848
$this->assertFalse($result['verify']);
4949
}

0 commit comments

Comments
 (0)