File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -131,14 +131,9 @@ public function testValidStatement(): void
131
131
132
132
public function testInvalidStatement (): void
133
133
{
134
- $ exception = false ;
135
- try {
136
- $ statement = Statement::create ('MERGE (x:Tes0342hdm21.()) ' , ['test ' => 'a ' , 'otherTest ' => 'b ' ]);
137
- $ this ->getSession ()->transaction (static fn (TransactionInterface $ tsx ) => $ tsx ->runStatement ($ statement ));
138
- } catch (Neo4jException ) {
139
- $ exception = true ;
140
- }
141
- self ::assertTrue ($ exception );
134
+ $ this ->expectException (Neo4jException::class);
135
+ $ statement = Statement::create ('MERGE (x:Tes0342hdm21.()) ' , ['test ' => 'a ' , 'otherTest ' => 'b ' ]);
136
+ $ this ->getSession ()->transaction (static fn (TransactionInterface $ tsx ) => $ tsx ->runStatement ($ statement ));
142
137
}
143
138
144
139
public function testStatements (): void
You can’t perform that action at this time.
0 commit comments