/** * @expectedException \Exception * @expectedExceptionMessage Cannot commit. Not in transaction. */ public function testCommitBeforeBegin() { DB::commit(); }