mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fix failing test.
This test merges config funny.
This commit is contained in:
parent
c74d2e0860
commit
fa68c93c2d
1 changed files with 2 additions and 0 deletions
|
@ -215,11 +215,13 @@ class HttpSocketTest extends CakeTestCase {
|
|||
$this->Socket->expects($this->never())->method('connect');
|
||||
$this->Socket->__construct(array('host' => 'foo-bar'));
|
||||
$baseConfig['host'] = 'foo-bar';
|
||||
$baseConfig['cryptoType'] = 'tls';
|
||||
$this->assertEquals($this->Socket->config, $baseConfig);
|
||||
|
||||
$this->Socket->reset();
|
||||
$baseConfig = $this->Socket->config;
|
||||
$this->Socket->__construct('http://www.cakephp.org:23/');
|
||||
$baseConfig['cryptoType'] = 'tls';
|
||||
$baseConfig['host'] = $baseConfig['request']['uri']['host'] = 'www.cakephp.org';
|
||||
$baseConfig['port'] = $baseConfig['request']['uri']['port'] = 23;
|
||||
$baseConfig['request']['uri']['scheme'] = 'http';
|
||||
|
|
Loading…
Add table
Reference in a new issue