1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-03 14:32:40 +00:00

Crash was related to xdebug

This commit is contained in:
J. King 2024-12-27 09:45:22 -05:00
parent 9c25b7b6e6
commit b306f0fc29

View file

@ -54,15 +54,12 @@ class TestTransaction extends \JKingWeb\Arsse\Test\AbstractTest {
}
public function testIgnoreRollbackErrors(): void {
// FIXME: This test segfaults when both transactions are checked.
// It appears to be a wonky interaction with Phake, and not a problem
// with the actual code.
\Phake::when($this->drv)->savepointUndo->thenThrow(new Exception("savepointStale"));
$tr1 = new Transaction($this->drv);
//$tr2 = new Transaction($this->drv);
$tr2 = new Transaction($this->drv);
unset($tr1); // no exception should bubble up
//unset($tr2); // no exception should bubble up
unset($tr2); // no exception should bubble up
\Phake::verify($this->drv)->savepointUndo(1);
//\Phake::verify($this->drv)->savepointUndo(2);
\Phake::verify($this->drv)->savepointUndo(2);
}
}