| @@ 98-105 (lines=8) @@ | ||
| 95 | && $v['test']['client']['varnish']['enabled'] |
|
| 96 | && !isset($v['proxy_client']['varnish']); |
|
| 97 | }) |
|
| 98 | ->then(function ($v) { |
|
| 99 | if ('auto' === $v['test']['client']['varnish']['enabled']) { |
|
| 100 | $v['test']['client']['varnish']['enabled'] = false; |
|
| 101 | ||
| 102 | return $v; |
|
| 103 | } |
|
| 104 | throw new InvalidConfigurationException('You need to configure the Varnish proxy_client to use the Varnish test client'); |
|
| 105 | }) |
|
| 106 | ->end() |
|
| 107 | ->validate() |
|
| 108 | ->ifTrue(function ($v) { |
|
| @@ 113-120 (lines=8) @@ | ||
| 110 | return $v['test']['client']['nginx']['enabled'] && !isset($v['proxy_client']['nginx']); |
|
| 111 | } |
|
| 112 | }) |
|
| 113 | ->then(function ($v) { |
|
| 114 | if ('auto' === $v['test']['client']['nginx']['enabled']) { |
|
| 115 | $v['test']['client']['nginx']['enabled'] = false; |
|
| 116 | ||
| 117 | return $v; |
|
| 118 | } |
|
| 119 | throw new InvalidConfigurationException('You need to configure the Nginx proxy_client to use the Nginx test client'); |
|
| 120 | }) |
|
| 121 | ->end() |
|
| 122 | ->validate() |
|
| 123 | ->ifTrue( |
|