@@ -27,12 +27,12 @@ public function testAsterisk()
2727 $ html = $ this ->renderLabel ($ view );
2828 $ this ->assertMatchesXpath (
2929 $ this ->removeBreaks ($ html ),
30- '
30+ <<<'EOT '
3131/label[@for="name"][@class="control-label col-sm-3 required"]
3232 [
3333 ./span[@class="asterisk"][.="*"]
3434 ]
35- '
35+ EOT
3636 );
3737 }
3838
@@ -48,15 +48,15 @@ public function testRenderFieldset()
4848
4949 $ this ->assertMatchesXpath (
5050 $ html ,
51- '
51+ <<<'EOT '
5252/form
5353 [
5454 ./fieldset
5555 [
5656 ./div[@class="form-group"]
5757 ]
5858 ]
59- '
59+ EOT
6060 );
6161 }
6262
@@ -72,12 +72,12 @@ public function testNoRenderFieldset()
7272
7373 $ this ->assertMatchesXpath (
7474 $ html ,
75- '
75+ <<<'EOT '
7676/form
7777 [
7878 ./div[@class="form-group"]
7979 ]
80- '
80+ EOT
8181 );
8282 }
8383
@@ -93,7 +93,7 @@ public function testRenderLegend()
9393
9494 $ this ->assertMatchesXpath (
9595 $ html ,
96- '
96+ <<<'EOT '
9797/form
9898 [
9999 ./fieldset
@@ -102,7 +102,7 @@ public function testRenderLegend()
102102 /following-sibling::div[@class="form-group"]
103103 ]
104104 ]
105- '
105+ EOT
106106 );
107107 }
108108
@@ -118,15 +118,15 @@ public function testNoRenderLegend()
118118
119119 $ this ->assertMatchesXpath (
120120 $ html ,
121- '
121+ <<<'EOT '
122122/form
123123 [
124124 ./fieldset
125125 [
126126 not(./legend)
127127 ]
128128 ]
129- '
129+ EOT
130130 );
131131 }
132132
@@ -142,7 +142,7 @@ public function testLegendTag()
142142
143143 $ this ->assertMatchesXpath (
144144 $ html ,
145- '
145+ <<<'EOT '
146146/form
147147 [
148148 ./fieldset
@@ -151,7 +151,7 @@ public function testLegendTag()
151151 /following-sibling::div[@class="form-group"]
152152 ]
153153 ]
154- '
154+ EOT
155155 );
156156 }
157157
@@ -166,12 +166,12 @@ public function testLabelRender()
166166 $ html = $ this ->renderRow ($ view );
167167 $ this ->assertMatchesXpath (
168168 $ this ->removeBreaks ($ html ),
169- '
169+ <<<'EOT '
170170/div[@class="form-group"]
171171 [
172172 not(./label)
173173 ]
174- '
174+ EOT
175175 );
176176 }
177177}
0 commit comments