File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -59,4 +59,37 @@ public function it_correctly_dumps_array()
59
59
60
60
$ this ->assertEquals ($ expected , get_dump ($ array ));
61
61
}
62
+
63
+ /** @test */
64
+ public function it_correctly_dumps_array_with_very_long_strings ()
65
+ {
66
+ $ dump = get_dump ([str_repeat ('x ' , 3000 )]);
67
+ $ this ->assertNotContains ('… ' , $ dump );
68
+ $ this ->assertNotContains ('... ' , $ dump );
69
+ }
70
+
71
+ /** @test */
72
+ public function it_correctly_dumps_array_with_huge_amount_of_items ()
73
+ {
74
+ $ array = range (1 , 3 );
75
+ $ subArray = range (1 , 3000 );
76
+ $ array = array_map (function () use ($ subArray ) {
77
+ return $ subArray ;
78
+ }, $ array );
79
+
80
+ $ dump = get_dump ($ array );
81
+ $ this ->assertNotContains ('… ' , $ dump );
82
+ $ this ->assertNotContains ('... ' , $ dump );
83
+ }
84
+
85
+ /** @test */
86
+ public function it_correctly_dumps_array_with_depth_50 ()
87
+ {
88
+ $ key = trim (str_repeat ('foo. ' , 50 ), '. ' );
89
+ $ array = array_add ([], $ key , 'bar ' );
90
+
91
+ $ dump = get_dump ($ array );
92
+ $ this ->assertNotContains ('… ' , $ dump );
93
+ $ this ->assertNotContains ('... ' , $ dump );
94
+ }
62
95
}
You can’t perform that action at this time.
0 commit comments