예제 #1
0
 /**
  * @param int $count
  * @param MemoryStateStorage $storage
  * @return Document[]
  */
 public function documentsProvider(int $count, MemoryStateStorage $storage) : array
 {
     $documents = [];
     for ($i = 0; $i < $count; $i++) {
         $documents[$i] = $this->getMockBuilder(Document::class)->setMethods(['getFoo', 'getBar'])->getMockForAbstractClass();
         $storage->upsert(Identity::createNew()->getValue(), $documents[$i]);
     }
     return $documents;
 }