| 1 | <?php |
||
| 17 | final class EquatableCollectionContains extends \PHPUnit_Framework_Constraint_TraversableContains |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @inheritdoc |
||
| 21 | */ |
||
| 22 | 27 | protected function matches($other) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | 12 | protected function failureDescription($other) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @param \Traversable|array $other |
||
| 53 | * |
||
| 54 | * @return bool |
||
| 55 | */ |
||
| 56 | 6 | private function collectionContainsAnEqualEquatableObject($other) |
|
| 66 | } |
||
| 67 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.