public function testCommitRollback2() { $this->setExpectedException('SFM\\Transaction\\TransactionException', "Transaction already stopped"); $im = new IdentityMap(new \SFM\IdentityMap\IdentityMapStorage(), new \SFM\IdentityMap\IdentityMapStorage(), new \SFM\IdentityMap\IdentityMapStorage()); $im->beginTransaction(); $im->commitTransaction(); $im->rollbackTransaction(); }