示例#1
0
 protected function makeExternalModificationToModel(BaseModel $model, $offset)
 {
     usleep(2);
     $directory = new FooDirectory($this->getMongoDB());
     $directory->update($model, ['badMod' => $offset + 1, 'serial' => SerialUtil::newSerial()]);
     usleep(2);
 }
示例#2
0
 public function testSerializeJSON()
 {
     $dir = new FooDirectory($this->getMongoDB());
     $model = $dir->create(['baz' => 'one']);
     PHPUnit::assertContains('"baz":"one"', json_encode($model));
 }