Skip to content

Commit 4856902

Browse files
committed
made some http tests more flexible
1 parent 2960576 commit 4856902

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Integration/TransactionIntegrationTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Laudis\Neo4j\Formatter\BasicFormatter;
2222
use ReflectionClass;
2323
use function str_starts_with;
24+
use Throwable;
2425

2526
/**
2627
* @psalm-import-type BasicResults from \Laudis\Neo4j\Formatter\BasicFormatter
@@ -308,7 +309,7 @@ public function testCommitInvalid(string $alias): void
308309
$exception = false;
309310
try {
310311
$tsx->commit();
311-
} catch (Neo4jException $e) {
312+
} catch (Throwable $e) {
312313
$exception = true;
313314
}
314315
self::assertTrue($exception);
@@ -354,7 +355,7 @@ public function testRollbackInvalid(string $alias): void
354355
$exception = false;
355356
try {
356357
$tsx->rollback();
357-
} catch (Neo4jException $e) {
358+
} catch (Throwable $e) {
358359
$exception = true;
359360
}
360361
self::assertTrue($exception);

0 commit comments

Comments
 (0)