| Total Complexity | 6 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class MockSoapClient extends SoapClient |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | private $currentIndex; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var array<mixed>|callable |
||
| 29 | */ |
||
| 30 | private $responses; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * MockSoapClient constructor. |
||
| 34 | * |
||
| 35 | * @param array<mixed>|callable $responses |
||
| 36 | */ |
||
| 37 | 5 | public function __construct($responses = null) |
|
| 45 | 3 | } |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $function_name |
||
| 49 | * @param array<mixed> $arguments |
||
| 50 | * @param array<mixed>|null $options |
||
| 51 | * @param array<mixed>|SoapHeader|null $input_headers |
||
| 52 | * @param array<mixed>|null $output_headers |
||
| 53 | * |
||
| 54 | * @throws SoapFault |
||
| 55 | * |
||
| 56 | * @return mixed |
||
| 57 | */ |
||
| 58 | 3 | public function __soapCall( |
|
| 84 |