public function testPartialTransactionFail() { $repository = new TestRepository(); $repository->beginTransaction(); $repository->save(['title' => 'test existing', 'seq' => 11]); $repository->rollback(); $this->assertTrue($repository->count() == $this->count); }