| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Expectations |
||
| 9 | { |
||
| 10 | /** @var array */ |
||
| 11 | private $expectations; |
||
| 12 | |||
| 13 | public function __construct(array $expectations) |
||
| 14 | { |
||
| 15 | $this->expectations = $expectations; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getExpectedMethods() : array |
||
| 19 | { |
||
| 20 | return array_unique(array_map( |
||
| 21 | function(Expectation $expectation) { |
||
| 22 | return $expectation->getMethod(); |
||
| 23 | }, $this->expectations |
||
| 24 | )); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function set(PHPUnit_Framework_MockObject_MockObject $mock) : void |
||
| 33 | } |
||
| 34 | ); |
||
| 35 | } |
||
| 37 |