| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class MockBuilder |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array Expectation[] |
||
| 9 | */ |
||
| 10 | protected array $expectations; |
||
| 11 | |||
| 12 | 121 | public function when(): Expectation |
|
| 13 | { |
||
| 14 | 121 | $expectation = new Expectation(); |
|
| 15 | 121 | $this->expectations[] = $expectation; |
|
| 16 | |||
| 17 | 121 | return $expectation; |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return Expectation[] |
||
| 22 | */ |
||
| 23 | 121 | public function getExpectations(): array |
|
| 26 | } |
||
| 27 | } |
||
| 28 |