| 1 | <?php |
||
| 21 | class MessageManagerMock extends MessageManager |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) |
||
| 27 | { |
||
| 28 | $result = array(); |
||
| 29 | while ($limit !== null && $limit > 0) { |
||
| 30 | $result[$limit] = new Message(); |
||
| 31 | --$limit; |
||
| 32 | } |
||
| 33 | |||
| 34 | return $result; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function findByTypes(array $types, $state, $batchSize) |
||
| 38 | { |
||
| 39 | $result = array(); |
||
| 40 | while ($batchSize !== null && $batchSize > 0) { |
||
| 41 | $result[$batchSize] = new Message(); |
||
| 42 | --$batchSize; |
||
| 43 | } |
||
| 44 | |||
| 45 | return $result; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function save($message, $andFlush = true) |
||
| 52 | } |
||
| 53 |