PHPLIB-502: Assert against transaction state

parent c57450e7
...@@ -568,8 +568,7 @@ final class Operation ...@@ -568,8 +568,7 @@ final class Operation
* instead exposes a bool to let us know whether a transaction * instead exposes a bool to let us know whether a transaction
* is currently in progress. This code may fail down the line * is currently in progress. This code may fail down the line
* and should be adjusted once PHPC-1438 is implemented. */ * and should be adjusted once PHPC-1438 is implemented. */
$expected = in_array($this->arguments['state'], ['in_progress', 'starting']); $test->assertSame($this->arguments['state'], $args['session']->getTransactionState());
$test->assertSame($expected, $args['session']->isInTransaction());
return null; return null;
case 'assertSessionUnpinned': case 'assertSessionUnpinned':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment