Test Failed
Pull Request — develop (#2)
by
unknown
08:37
created
tests/Unit/Builder/FormBuilderTest.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $this->assertEquals(<<<T
22 22
 <form name="form" method="post">
23 23
 </form>
24
-T
24
+t
25 25
 , $render);
26 26
     }
27 27
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 <form name="form" method="post">
36 36
     <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
37 37
 </form>
38
-T
38
+t
39 39
 , $render);
40 40
     }
41 41
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 <form name="form" method="post">
52 52
     <div class="form-group"><label for="form_foo">Foo</label><input type="email" id="form_foo" name="form[foo]" class="form-control" /></div>
53 53
 </form>
54
-T
54
+t
55 55
 , $render);
56 56
     }
57 57
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     <div class="form-group"><label for="form_foo">Foo</label><input type="email" id="form_foo" name="form[foo]" class="form-control" /></div>
72 72
     <div class="form-group"><label for="form_bar">Bar</label><textarea id="form_bar" name="form[bar]" class="form-control"></textarea></div>
73 73
 </form>
74
-T
74
+t
75 75
 , $render);
76 76
     }
77 77
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $this->assertEquals(<<<T
83 83
 <form name="form" method="post"><div id="form"></div></form>
84
-T
84
+t
85 85
 , $render);
86 86
     }
87 87
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         $this->assertEquals(<<<T
95 95
 File: <form name="form" method="post"><div id="form"></div></form>
96
-T
96
+t
97 97
 , $render);
98 98
     }
99 99
 }
Please login to merge, or discard this patch.
tests/Unit/InputTest.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $this->assertEquals(<<<T
44 44
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
45
-T
45
+t
46 46
 , $render);
47 47
     }
48 48
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         $this->assertEquals(<<<T
54 54
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
55
-T
55
+t
56 56
 , $render);
57 57
     }
58 58
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $this->assertEquals(<<<T
64 64
 <form name="form" method="post">
65 65
 </form>
66
-T
66
+t
67 67
 , $render);
68 68
     }
69 69
 
Please login to merge, or discard this patch.
src/Input.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,8 @@
 block discarded – undo
29 29
 
30 30
     public static function create(string $type, string $name, array $options = []): string
31 31
     {
32
-        return (new class($type, $name, $options) extends InputBuilder {
32
+        return (new class($type, $name, $options) extends InputBuilder
33
+        {
33 34
             public function __construct(string $type, string $name, array $options)
34 35
             {
35 36
                 $this->type = $type;
Please login to merge, or discard this patch.
src/Builder/FormBuilder.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     {{ input|raw }}
112 112
 {% endfor %}
113 113
 {{ form_end(form) }}
114
-T;
114
+t;
115 115
 
116 116
         if (\is_file($this->template)) {
117 117
             $_template = (string)\file_get_contents($this->template);
Please login to merge, or discard this patch.
tests/Unit/Builder/InputBuilderTest.php 1 patch
Upper-Lower-Casing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         $this->assertEquals(<<<T
22 22
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
23
-T
23
+t
24 24
 , $render);
25 25
     }
26 26
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $this->assertEquals(<<<T
32 32
 <div class="form-group"><label for="form_foo_bar">Foo bar</label><input type="text" id="form_foo_bar" name="form[foo_bar]" class="form-control" /></div>
33
-T
33
+t
34 34
 , $render);
35 35
     }
36 36
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $this->assertEquals(<<<T
47 47
 <div class="form-group"><label for="form_foo_bar">Foo bar</label><input type="text" id="form_foo_bar" name="form[foo_bar]" class="form-control" /></div>
48
-T
48
+t
49 49
 , $render);
50 50
     }
51 51
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         $this->assertEquals(<<<T
59 59
 <div class="form-group"><label for="form_foo">My Label</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
60
-T
60
+t
61 61
 , $render);
62 62
     }
63 63
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $this->assertEquals(<<<T
74 74
 <div class="form-group"><label class="label-class" for="form_foo">My Label</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
75
-T
75
+t
76 76
 , $render);
77 77
     }
78 78
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         $this->assertEquals(<<<T
86 86
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" value="fuz" /></div>
87
-T
87
+t
88 88
 , $render);
89 89
     }
90 90
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $this->assertEquals(<<<T
98 98
 <div class="form-group"><label for="form_foo">Foo</label><input type="email" id="form_foo" name="form[foo]" class="form-control" /></div>
99
-T
99
+t
100 100
 , $render);
101 101
     }
102 102
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         $this->assertEquals(<<<T
110 110
 <div class="form-group"><label for="form_foo" class="required">Foo</label><input type="text" id="form_foo" name="form[foo]" required="required" class="form-control" /></div>
111
-T
111
+t
112 112
 , $render);
113 113
     }
114 114
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         $this->assertEquals(<<<T
127 127
 <div class="form-group"><label for="form_foo" class="required">Foo</label><input type="text" id="form_foo" name="form[foo]" required="required" class="form-control" /></div>
128
-T
128
+t
129 129
 , $render);
130 130
     }
131 131
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
         $this->assertEquals(<<<T
144 144
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
145
-T
145
+t
146 146
 , $render);
147 147
     }
148 148
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
         $this->assertEquals(<<<T
158 158
 <div class="form-group"><label for="form_foo">Foo</label><input type="email" id="form_foo" name="form[foo]" class="form-control" /></div>
159
-T
159
+t
160 160
 , $render);
161 161
     }
162 162
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
         $this->assertEquals(<<<T
172 172
 <div class="form-group"><label for="form_foo">Foo</label><input type="email" id="form_foo" name="form[foo]" class="form-control" /></div>
173
-T
173
+t
174 174
 , $render);
175 175
     }
176 176
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
         $this->assertEquals(<<<T
186 186
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" data-parsley-type="digits" class="form-control" /></div>
187
-T
187
+t
188 188
 , $render);
189 189
     }
190 190
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
         $this->assertEquals(<<<T
200 200
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" data-parsley-type="alphanum" class="form-control" /></div>
201
-T
201
+t
202 202
 , $render);
203 203
     }
204 204
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
         $this->assertEquals(<<<T
214 214
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" minlength="5" class="form-control" /></div>
215
-T
215
+t
216 216
 , $render);
217 217
     }
218 218
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         $this->assertEquals(<<<T
228 228
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" maxlength="666" class="form-control" /></div>
229
-T
229
+t
230 230
 , $render);
231 231
     }
232 232
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 
241 241
         $this->assertEquals(<<<T
242 242
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" data-parsley-length="[6,10]" class="form-control" /></div>
243
-T
243
+t
244 244
 , $render);
245 245
     }
246 246
 
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
         $this->assertEquals(<<<T
256 256
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" min="3" class="form-control" /></div>
257
-T
257
+t
258 258
 , $render);
259 259
     }
260 260
 
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 
269 269
         $this->assertEquals(<<<T
270 270
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" max="99" class="form-control" /></div>
271
-T
271
+t
272 272
 , $render);
273 273
     }
274 274
 
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 
283 283
         $this->assertEquals(<<<T
284 284
 <div class="form-group"><label for="form_foo">Foo</label>        <input type="range" id="form_foo" name="form[foo]" min="6" max="10" class="form-control-range" /></div>
285
-T
285
+t
286 286
 , $render);
287 287
     }
288 288
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 
297 297
         $this->assertEquals(<<<T
298 298
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" pattern="\+d" class="form-control" /></div>
299
-T
299
+t
300 300
 , $render);
301 301
     }
302 302
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 
311 311
         $this->assertEquals(<<<T
312 312
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" data-parsley-mincheck="3" class="form-control" /></div>
313
-T
313
+t
314 314
 , $render);
315 315
     }
316 316
 
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 
325 325
         $this->assertEquals(<<<T
326 326
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" data-parsley-maxcheck="5" class="form-control" /></div>
327
-T
327
+t
328 328
 , $render);
329 329
     }
330 330
 
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 
339 339
         $this->assertEquals(<<<T
340 340
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" data-parsley-check="[1,3]" class="form-control" /></div>
341
-T
341
+t
342 342
 , $render);
343 343
     }
344 344
 
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 
353 353
         $this->assertEquals(<<<T
354 354
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" data-parsley-equalto="#another" class="form-control" /></div>
355
-T
355
+t
356 356
 , $render);
357 357
     }
358 358
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 
367 367
         $this->assertEquals(<<<T
368 368
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" data-parsley-validator-foo="#bar" class="form-control" /></div>
369
-T
369
+t
370 370
 , $render);
371 371
     }
372 372
 
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
         $this->assertEquals(<<<T
380 380
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" aria-describedby="form_foo_help" class="form-control" /><small id="form_foo_help" class="form-text text-muted">A help block</small></div>
381
-T
381
+t
382 382
 , $render);
383 383
     }
384 384
 
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 
394 394
         $this->assertEquals(<<<T
395 395
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" aria-describedby="form_foo_help" class="form-control" /><small id="form_foo_help" class="help-class form-text text-muted">A help block</small></div>
396
-T
396
+t
397 397
 , $render);
398 398
     }
399 399
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 
407 407
         $this->assertEquals(<<<T
408 408
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" aria-describedby="form_foo_help" class="form-control" /><small id="form_foo_help" class="form-text text-muted"><a href="link">A help block</a></small></div>
409
-T
409
+t
410 410
 , $render);
411 411
     }
412 412
 
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
         $this->assertEquals(<<<T
422 422
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="input-class form-control" /></div>
423
-T
423
+t
424 424
 , $render);
425 425
     }
426 426
 
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 
436 436
         $this->assertEquals(<<<T
437 437
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="input-class form-control" placeholder="default" /></div>
438
-T
438
+t
439 439
 , $render);
440 440
     }
441 441
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 
451 451
         $this->assertEquals(<<<T
452 452
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" placeholder="default" class="input-class form-control" /></div>
453
-T
453
+t
454 454
 , $render);
455 455
     }
456 456
 
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 
463 463
         $this->assertEquals(<<<T
464 464
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" disabled="disabled" class="form-control" /></div>
465
-T
465
+t
466 466
 , $render);
467 467
     }
468 468
 
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
 
475 475
         $this->assertEquals(<<<T
476 476
 <div class="form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" placeholder="default" class="form-control" /></div>
477
-T
477
+t
478 478
 , $render);
479 479
     }
480 480
 
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
 
489 489
         $this->assertEquals(<<<T
490 490
 <div class="row-class form-group"><label for="form_foo">Foo</label><input type="text" id="form_foo" name="form[foo]" class="form-control" /></div>
491
-T
491
+t
492 492
 , $render);
493 493
     }
494 494
 
Please login to merge, or discard this patch.