File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 13
13
14
14
namespace Laudis \Neo4j \Tests \Integration ;
15
15
16
+ use function base64_encode ;
16
17
use function count ;
17
18
use InvalidArgumentException ;
18
19
use Laudis \Neo4j \Contracts \FormatterInterface ;
19
20
use Laudis \Neo4j \Contracts \TransactionInterface ;
20
21
use Laudis \Neo4j \Databags \Statement ;
21
22
use Laudis \Neo4j \Exception \Neo4jException ;
22
23
use Laudis \Neo4j \Formatter \BasicFormatter ;
24
+ use function random_bytes ;
23
25
24
26
/**
25
27
* @psalm-import-type BasicResults from \Laudis\Neo4j\Formatter\BasicFormatter
@@ -72,6 +74,30 @@ public function testAvailabilityFullImplementation(string $alias): void
72
74
self ::assertEquals (1 , $ results );
73
75
}
74
76
77
+ /**
78
+ * @dataProvider connectionAliases
79
+ */
80
+ public function testBigRandomData (string $ alias ): void
81
+ {
82
+ $ tsx = $ this ->client ->getDriver ($ alias )
83
+ ->createSession ()
84
+ ->beginTransaction ();
85
+
86
+ $ params = [
87
+ 'id ' => 'xyz ' ,
88
+ ];
89
+
90
+ for ($ i = 0 ; $ i < 100000 ; ++$ i ) {
91
+ $ params [base64_encode (random_bytes (32 ))] = base64_encode (random_bytes (128 ));
92
+ }
93
+
94
+ $ tsx ->run ('MATCH (a :label {id:$id}) RETURN a ' , $ params );
95
+
96
+ $ tsx ->rollback ();
97
+
98
+ self ::assertTrue (true );
99
+ }
100
+
75
101
/**
76
102
* @dataProvider connectionAliases
77
103
*/
You can’t perform that action at this time.
0 commit comments