Skip to content

Commit c68ac46

Browse files
committed
fixed cypher exception handling test issue
1 parent 62c98dd commit c68ac46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Unit/CypherTypeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
namespace Laudis\Neo4j\Tests\Unit;
1515

1616
use BadMethodCallException;
17-
use InvalidArgumentException;
1817
use function json_encode;
1918
use JsonException;
2019
use Laudis\Neo4j\Types\AbstractCypherObject;
20+
use OutOfBoundsException;
2121
use PHPUnit\Framework\TestCase;
2222

2323
/**
@@ -81,7 +81,7 @@ public function testEmpty(): void
8181
$caught = null;
8282
try {
8383
$empty[0];
84-
} catch (InvalidArgumentException $e) {
84+
} catch (OutOfBoundsException $e) {
8585
$caught = true;
8686
}
8787
self::assertTrue($caught, 'Empty has still valid access');
@@ -124,7 +124,7 @@ public function testFilled(): void
124124
$caught = null;
125125
try {
126126
$filled[0];
127-
} catch (InvalidArgumentException $e) {
127+
} catch (OutOfBoundsException $e) {
128128
$caught = true;
129129
}
130130
self::assertTrue($caught, 'Filled has still valid access');

0 commit comments

Comments
 (0)