Skip to content

Commit fd6052e

Browse files
ondrejmirtesnikic
authored andcommitted
FPPP failing tests
1 parent bd72280 commit fd6052e

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

test/code/formatPreservation/listRemoval.test

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,66 @@ $y;
111111
array_splice($stmts, 0, 1, []);
112112
-----
113113
<?php
114-
$y;
114+
$y;
115+
-----
116+
<?php
117+
118+
try {
119+
120+
} catch (\InvalidArgumentException $e) {
121+
122+
} catch (\Exception $e) {
123+
124+
} catch (\LogicException $e) {
125+
126+
} catch (\Throwable $e) {
127+
128+
}
129+
-----
130+
$catch = $stmts[0]->catches[2];
131+
unset($stmts[0]->catches[2]);
132+
$stmts[0]->catches = array_values($stmts[0]->catches);
133+
array_splice($stmts[0]->catches, 1, 0, [$catch]);
134+
-----
135+
<?php
136+
137+
try {
138+
139+
} catch (\InvalidArgumentException $e) {
140+
141+
} catch (\LogicException $e) {
142+
143+
} catch (\Exception $e) {
144+
145+
} catch (\Throwable $e) {
146+
147+
}
148+
-----
149+
<?php
150+
151+
try {
152+
153+
} catch (\InvalidArgumentException $e) {
154+
155+
} catch (\Exception $e) {
156+
157+
} catch (\LogicException $e) {
158+
159+
} catch (\Throwable $e) {
160+
161+
}
162+
-----
163+
unset($stmts[0]->catches[2]);
164+
$stmts[0]->catches = array_values($stmts[0]->catches);
165+
-----
166+
<?php
167+
168+
try {
169+
170+
} catch (\InvalidArgumentException $e) {
171+
172+
} catch (\Exception $e) {
173+
174+
} catch (\Throwable $e) {
175+
176+
}

0 commit comments

Comments
 (0)