| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function testDid(): void |
||
| 17 | { |
||
| 18 | $statistics = new Statistics( |
||
| 19 | $this->createHttpClient(new MockResponse( |
||
| 20 | (string) json_encode($responseData = [ |
||
| 21 | 'error' => null, |
||
| 22 | 'data' => [ |
||
| 23 | 'calls' => [ |
||
| 24 | [ |
||
| 25 | 'starttime' => '2020-01-01 16:28:49', |
||
| 26 | 'source' => 'unknown', |
||
| 27 | 'duration' => 30, |
||
| 28 | // ... |
||
| 29 | ], |
||
| 30 | ], |
||
| 31 | ], |
||
| 32 | ]) |
||
| 33 | )) |
||
| 34 | ); |
||
| 35 | |||
| 36 | static::assertSame( |
||
| 37 | $responseData, |
||
| 38 | $statistics->did() |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |