Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit d0d1ddb

Browse files
committed
Test that ProxyAdapter has all the config options of SocketAdapter
1 parent ca51fed commit d0d1ddb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/Client/ProxyAdapterTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,19 @@ public function testProxyKeysCorrectlySetInProxyAdapter()
132132
$this->assertSame($this->host, $adapterHost);
133133
$this->assertSame($this->port, $adapterPort);
134134
}
135+
136+
public function testProxyHasAllSocketConfigs()
137+
{
138+
$socket = new \Zend\Http\Client\Adapter\Socket();
139+
$socketConfig = $socket->getConfig();
140+
$proxy = new \Zend\Http\Client\Adapter\Proxy();
141+
$proxyConfig = $proxy->getConfig();
142+
foreach (array_keys($socketConfig) as $socketConfigKey) {
143+
$this->assertArrayHasKey(
144+
$socketConfigKey,
145+
$proxyConfig,
146+
"Proxy adapter should have all the Socket configuration keys"
147+
);
148+
}
149+
}
135150
}

0 commit comments

Comments
 (0)