@@ -24,7 +24,7 @@ public function testRow()
24
24
$ html = $ this ->renderRow ($ view );
25
25
26
26
$ this ->assertMatchesXpath ($ html ,
27
- '/div
27
+ '/div
28
28
[
29
29
./label[@for="name"]
30
30
/following-sibling::ul
@@ -46,7 +46,7 @@ public function testRowOverrideVariables()
46
46
]);
47
47
48
48
$ this ->assertMatchesXpath ($ html ,
49
- '/div
49
+ '/div
50
50
[
51
51
./label[@for="name"][@class="my&label&class required"][.="[trans]foo&bar[/trans]"]
52
52
/following-sibling::input[@id="name"][@class="my&class"]
@@ -68,7 +68,7 @@ public function testRepeatedRow()
68
68
// (see RepeatedTypeValidatorExtension)
69
69
70
70
$ this ->assertMatchesXpath ($ html ,
71
- '/div
71
+ '/div
72
72
[
73
73
./label[@for="name_first"]
74
74
/following-sibling::input[@id="name_first"]
@@ -89,7 +89,7 @@ public function testButtonRow()
89
89
$ html = $ this ->renderRow ($ view );
90
90
91
91
$ this ->assertMatchesXpath ($ html ,
92
- '/div
92
+ '/div
93
93
[
94
94
./button[@type="button"][@name="name"]
95
95
]
@@ -119,7 +119,7 @@ public function testRest()
119
119
$ html = $ this ->renderRest ($ view );
120
120
121
121
$ this ->assertMatchesXpath ($ html ,
122
- '/div
122
+ '/div
123
123
[
124
124
./label[@for="name_field1"]
125
125
/following-sibling::input[@type="text"][@id="name_field1"]
@@ -165,7 +165,7 @@ public function testRestWithChildrenForms()
165
165
$ html = $ this ->renderRest ($ view );
166
166
167
167
$ this ->assertMatchesXpath ($ html ,
168
- '/div
168
+ '/div
169
169
[
170
170
./label[not(@for)]
171
171
/following-sibling::div[@id="parent_child1"]
@@ -210,7 +210,7 @@ public function testRestAndRepeatedWithRow()
210
210
$ html = $ this ->renderRest ($ view );
211
211
212
212
$ this ->assertMatchesXpath ($ html ,
213
- '/div
213
+ '/div
214
214
[
215
215
./label[@for="name_first"]
216
216
/following-sibling::input[@type="text"][@id="name_first"]
@@ -237,7 +237,7 @@ public function testRestAndRepeatedWithRowPerChild()
237
237
$ html = $ this ->renderRest ($ view );
238
238
239
239
$ this ->assertMatchesXpath ($ html ,
240
- '/div
240
+ '/div
241
241
[
242
242
./label[@for="name_first"]
243
243
/following-sibling::input[@type="text"][@id="name_first"]
@@ -267,7 +267,7 @@ public function testRestAndRepeatedWithWidgetPerChild()
267
267
$ html = $ this ->renderRest ($ view );
268
268
269
269
$ this ->assertMatchesXpath ($ html ,
270
- '/div
270
+ '/div
271
271
[
272
272
./label[@for="name_first"]
273
273
/following-sibling::input[@type="text"][@id="name_first"]
@@ -288,7 +288,7 @@ public function testCollection()
288
288
]);
289
289
290
290
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
291
- '/div
291
+ '/div
292
292
[
293
293
./div[./input[@type="text"][@value="a"]]
294
294
/following-sibling::div[./input[@type="text"][@value="b"]]
@@ -310,7 +310,7 @@ public function testCollectionWithAlternatingRowTypes()
310
310
]);
311
311
312
312
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
313
- '/div
313
+ '/div
314
314
[
315
315
./div[./div/div/input[@type="text"][@value="a"]]
316
316
/following-sibling::div[./div/div/textarea[.="b"]]
@@ -328,7 +328,7 @@ public function testEmptyCollection()
328
328
]);
329
329
330
330
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
331
- '/div
331
+ '/div
332
332
[./input[@type="hidden"][@id="names__token"]]
333
333
[count(./div)=0]
334
334
'
@@ -349,7 +349,7 @@ public function testCollectionRow()
349
349
->getForm ();
350
350
351
351
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
352
- '/div
352
+ '/div
353
353
[
354
354
./div
355
355
[
@@ -391,7 +391,7 @@ public function testForm()
391
391
]);
392
392
393
393
$ this ->assertMatchesXpath ($ html ,
394
- '/form
394
+ '/form
395
395
[
396
396
./input[@type="hidden"][@name="_method"][@value="PUT"]
397
397
/following-sibling::div
@@ -427,7 +427,7 @@ public function testFormWidget()
427
427
->getForm ();
428
428
429
429
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
430
- '/div
430
+ '/div
431
431
[
432
432
./div
433
433
[
@@ -459,7 +459,7 @@ public function testNestedFormError()
459
459
$ form ->get ('child ' )->addError (new FormError ('[trans]Error![/trans] ' ));
460
460
461
461
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
462
- '/div
462
+ '/div
463
463
[
464
464
./div/label
465
465
/following-sibling::ul[./li[.="[trans]Error![/trans]"]]
@@ -484,7 +484,7 @@ public function testCsrf()
484
484
->getForm ();
485
485
486
486
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
487
- '/div
487
+ '/div
488
488
[
489
489
./div
490
490
/following-sibling::input[@type="hidden"][@id="name__token"][@value="foo&bar"]
@@ -501,7 +501,7 @@ public function testRepeated()
501
501
]);
502
502
503
503
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
504
- '/div
504
+ '/div
505
505
[
506
506
./div
507
507
[
@@ -529,7 +529,7 @@ public function testRepeatedWithCustomOptions()
529
529
]);
530
530
531
531
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
532
- '/div
532
+ '/div
533
533
[
534
534
./div
535
535
[
@@ -555,7 +555,7 @@ public function testSearchInputName()
555
555
->getForm ();
556
556
557
557
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
558
- '/div
558
+ '/div
559
559
[
560
560
./div
561
561
[
@@ -575,7 +575,7 @@ public function testLabelHasNoId()
575
575
$ html = $ this ->renderRow ($ form ->createView ());
576
576
577
577
$ this ->assertMatchesXpath ($ html ,
578
- '/div
578
+ '/div
579
579
[
580
580
./label[@for="name"][not(@id)]
581
581
/following-sibling::input[@id="name"]
@@ -592,7 +592,7 @@ public function testLabelIsNotRenderedWhenSetToFalse()
592
592
$ html = $ this ->renderRow ($ form ->createView ());
593
593
594
594
$ this ->assertMatchesXpath ($ html ,
595
- '/div
595
+ '/div
596
596
[
597
597
./input[@id="name"]
598
598
]
@@ -638,7 +638,7 @@ public function testThemeInheritance($parentTheme, $childTheme)
638
638
$ this ->setTheme ($ view ['child ' ], $ childTheme );
639
639
640
640
$ this ->assertWidgetMatchesXpath ($ view , [],
641
- '/div
641
+ '/div
642
642
[
643
643
./div
644
644
[
@@ -674,7 +674,7 @@ public function testCollectionRowWithCustomBlock()
674
674
->getForm ();
675
675
676
676
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
677
- '/div
677
+ '/div
678
678
[
679
679
./div[./label[.="Custom label: [trans]0[/trans]"]]
680
680
/following-sibling::div[./label[.="Custom label: [trans]1[/trans]"]]
@@ -697,7 +697,7 @@ public function testChoiceRowWithCustomBlock()
697
697
->getForm ();
698
698
699
699
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
700
- '/div
700
+ '/div
701
701
[
702
702
./label[.="Custom name label: [trans]ChoiceA[/trans]"]
703
703
/following-sibling::label[.="Custom name label: [trans]ChoiceB[/trans]"]
@@ -793,7 +793,7 @@ public function testMultipleChoiceExpandedWithLabelsAsFalse()
793
793
]);
794
794
795
795
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
796
- '/div
796
+ '/div
797
797
[
798
798
./input[@type="checkbox"][@name="name[]"][@id="name_0"][@value="&a"][@checked]
799
799
/following-sibling::input[@type="checkbox"][@name="name[]"][@id="name_1"][@value="&b"][not(@checked)]
@@ -821,7 +821,7 @@ public function testMultipleChoiceExpandedWithLabelsSetByCallable()
821
821
]);
822
822
823
823
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
824
- '/div
824
+ '/div
825
825
[
826
826
./input[@type="checkbox"][@name="name[]"][@id="name_0"][@value="&a"][@checked]
827
827
/following-sibling::label[@for="name_0"][.="[trans]label.&a[/trans]"]
@@ -848,7 +848,7 @@ public function testMultipleChoiceExpandedWithLabelsSetFalseByCallable()
848
848
]);
849
849
850
850
$ this ->assertWidgetMatchesXpath ($ form ->createView (), [],
851
- '/div
851
+ '/div
852
852
[
853
853
./input[@type="checkbox"][@name="name[]"][@id="name_0"][@value="&a"][@checked]
854
854
/following-sibling::input[@type="checkbox"][@name="name[]"][@id="name_1"][@value="&b"][not(@checked)]
@@ -875,7 +875,7 @@ public function testFormEndWithRest()
875
875
876
876
// Insert the start tag, the end tag should be rendered by the helper
877
877
$ this ->assertMatchesXpath ('<form> ' .$ html ,
878
- '/form
878
+ '/form
879
879
[
880
880
./div
881
881
[
0 commit comments