Example #1
0
 public function testPartialTransaction()
 {
     $repository = new TestRepository();
     $repository->beginTransaction();
     $repository->save(['title' => 'test existing', 'seq' => 11]);
     $repository->commit();
     $this->count++;
     $this->assertTrue($repository->count() == $this->count);
 }