@@ -253,7 +253,7 @@ public function testDiscardAfterTimeout(): void
253
253
->first ()
254
254
->get ('x ' );
255
255
} catch (Neo4jException $ e ) {
256
- self ::assertContains ('Neo.ClientError.Transaction.TransactionTimedOut ' , $ e ->getNeo4jCode ());
256
+ self ::assertStringContainsString ('Neo.ClientError.Transaction.TransactionTimedOut ' , $ e ->getNeo4jCode ());
257
257
}
258
258
}
259
259
@@ -265,7 +265,7 @@ public function testTimeoutNoReturn(): void
265
265
try {
266
266
unset($ result );
267
267
} catch (Neo4jException $ e ) {
268
- $ this ->assertContains ('Neo.ClientError.Transaction.TransactionTimedOut ' , $ e ->getNeo4jCode ());
268
+ $ this ->assertStringContainsString ('Neo.ClientError.Transaction.TransactionTimedOut ' , $ e ->getNeo4jCode ());
269
269
}
270
270
}
271
271
@@ -275,7 +275,7 @@ public function testTimeout(): void
275
275
try {
276
276
$ tsx ->run ('UNWIND range(1, 10000) AS x MERGE (:Number {value: x}) ' );
277
277
} catch (Neo4jException $ e ) {
278
- self ::assertContains ('Neo.ClientError.Transaction.TransactionTimedOut ' , $ e ->getNeo4jCode ());
278
+ self ::assertStringContainsString ('Neo.ClientError.Transaction.TransactionTimedOut ' , $ e ->getNeo4jCode ());
279
279
$ tsx = $ this ->getSession ()->beginTransaction ([], TransactionConfiguration::default ()->withTimeout (20 ));
280
280
self ::assertEquals (1 , $ tsx ->run ('RETURN 1 AS one ' )->first ()->get ('one ' ));
281
281
}
@@ -328,7 +328,7 @@ public function testLongQueryUnmanagedNegative(): void
328
328
$ tsx = $ this ->getSession (['bolt ' , 'neo4j ' ])->beginTransaction ([], TransactionConfiguration::default ()->withTimeout (1 ));
329
329
$ tsx ->run ('UNWIND range(1, 10000) AS x MERGE (:Number {value: x}) ' );
330
330
} catch (Neo4jException $ e ) {
331
- self ::assertContains ('Neo.ClientError.Transaction.TransactionTimedOut ' , $ e ->getNeo4jCode ());
331
+ self ::assertStringContainsString ('Neo.ClientError.Transaction.TransactionTimedOut ' , $ e ->getNeo4jCode ());
332
332
}
333
333
}
334
334
0 commit comments