Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function testSetServiceSettings() |
||
31 | { |
||
32 | $failureRateThreshold = 20; |
||
33 | |||
34 | CircuitBreaker::setServiceSettings('my-service-2', [ |
||
35 | 'failureRateThreshold' => $failureRateThreshold, |
||
36 | ]); |
||
37 | |||
38 | $serviceSetting = CircuitBreaker::getServiceSetting('my-service-2', 'failureRateThreshold'); |
||
39 | |||
40 | $this->assertEquals($failureRateThreshold, $serviceSetting); |
||
41 | } |
||
43 |