mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-05 07:22:40 +00:00
Crash was related to xdebug
This commit is contained in:
parent
9c25b7b6e6
commit
b306f0fc29
1 changed files with 3 additions and 6 deletions
|
@ -54,15 +54,12 @@ class TestTransaction extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testIgnoreRollbackErrors(): void {
|
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"));
|
\Phake::when($this->drv)->savepointUndo->thenThrow(new Exception("savepointStale"));
|
||||||
$tr1 = new Transaction($this->drv);
|
$tr1 = new Transaction($this->drv);
|
||||||
//$tr2 = new Transaction($this->drv);
|
$tr2 = new Transaction($this->drv);
|
||||||
unset($tr1); // no exception should bubble up
|
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(1);
|
||||||
//\Phake::verify($this->drv)->savepointUndo(2);
|
\Phake::verify($this->drv)->savepointUndo(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue