@@ -39,7 +39,7 @@ public function it_sends_a_simple_request_with_no_response()
39
39
$ response = $ this ->getView ('simple-php-hello-world.blade.php ' );
40
40
41
41
$ this ->assertEquals (
42
- '<pre><code class="torchlight" style=""><div class= \'line \'>echo "hello world";</div></code></pre> ' ,
42
+ '<pre><code data-lang="php" class="torchlight" style=""><div class= \'line \'>echo "hello world";</div></code></pre> ' ,
43
43
$ response ->content ()
44
44
);
45
45
@@ -66,7 +66,7 @@ public function it_sends_a_simple_request_with_highlighted_response()
66
66
$ response = $ this ->getView ('simple-php-hello-world.blade.php ' );
67
67
68
68
$ this ->assertEquals (
69
- '<pre><code class="torchlight" style="background-color: #292D3E;">this is the highlighted response from the server</code></pre> ' ,
69
+ '<pre><code data-lang="php" class="torchlight" style="background-color: #292D3E;">this is the highlighted response from the server</code></pre> ' ,
70
70
$ response ->content ()
71
71
);
72
72
}
@@ -83,7 +83,7 @@ public function it_sends_a_simple_request_with_style()
83
83
$ response = $ this ->getView ('simple-php-hello-world-with-style.blade.php ' );
84
84
85
85
$ this ->assertEquals (
86
- '<pre><code class="torchlight" style="display: none;background-color: #292D3E;">this is the highlighted response from the server</code></pre> ' ,
86
+ '<pre><code data-lang="php" class="torchlight" style="display: none;background-color: #292D3E;">this is the highlighted response from the server</code></pre> ' ,
87
87
$ response ->content ()
88
88
);
89
89
}
@@ -100,7 +100,7 @@ public function classes_get_merged()
100
100
$ response = $ this ->getView ('simple-php-hello-world-with-classes.blade.php ' );
101
101
102
102
$ this ->assertEquals (
103
- '<code class="torchlight mt-4" style="background-color: #292D3E;">this is the highlighted response from the server</code> ' ,
103
+ '<code data-lang="php" class="torchlight mt-4" style="background-color: #292D3E;">this is the highlighted response from the server</code> ' ,
104
104
$ response ->content ()
105
105
);
106
106
}
@@ -117,7 +117,7 @@ public function attributes_are_preserved()
117
117
$ response = $ this ->getView ('simple-php-hello-world-with-attributes.blade.php ' );
118
118
119
119
$ this ->assertEquals (
120
- '<code class="torchlight" style="background-color: #292D3E;" x-data="{}">this is the highlighted response from the server</code> ' ,
120
+ '<code data-lang="php" class="torchlight" style="background-color: #292D3E;" x-data="{}">this is the highlighted response from the server</code> ' ,
121
121
$ response ->content ()
122
122
);
123
123
}
@@ -134,7 +134,7 @@ public function inline_keeps_its_spaces()
134
134
$ response = $ this ->getView ('an-inline-component.blade.php ' );
135
135
136
136
$ this ->assertEquals (
137
- 'this is <code class="torchlight" style="background-color: #292D3E;">this is the highlighted response from the server</code> inline ' ,
137
+ 'this is <code data-lang="php" class="torchlight" style="background-color: #292D3E;">this is the highlighted response from the server</code> inline ' ,
138
138
$ response ->content ()
139
139
);
140
140
}
@@ -151,7 +151,7 @@ public function inline_swaps_run()
151
151
$ response = $ this ->getView ('an-inline-component-with-swaps.blade.php ' );
152
152
153
153
$ this ->assertEquals (
154
- 'this is <code class="torchlight" style="background-color: #292D3E;">echo "goodbye world"</code> inline ' ,
154
+ 'this is <code data-lang="php" class="torchlight" style="background-color: #292D3E;">echo "goodbye world"</code> inline ' ,
155
155
$ response ->content ()
156
156
);
157
157
}
@@ -168,7 +168,7 @@ public function inline_processors_run()
168
168
$ response = $ this ->getView ('an-inline-component-with-post-processors.blade.php ' );
169
169
170
170
$ this ->assertEquals (
171
- 'this is <code class="torchlight" style="background-color: #292D3E;">echo "goodbye world"</code> inline ' ,
171
+ 'this is <code data-lang="php" class="torchlight" style="background-color: #292D3E;">echo "goodbye world"</code> inline ' ,
172
172
$ response ->content ()
173
173
);
174
174
}
@@ -229,7 +229,7 @@ public function dedent_works_properly()
229
229
230
230
$ response = $ this ->getView ('dedent_works_properly.blade.php ' );
231
231
232
- $ result = "<code class= \"torchlight \" style= \"\"><div class='line'>public function {</div><div class='line'> // test</div><div class='line'>}</div></code> " ;
232
+ $ result = "<code data-lang= \" php \" class= \"torchlight \" style= \"\"><div class='line'>public function {</div><div class='line'> // test</div><div class='line'>}</div></code> " ;
233
233
234
234
if (BladeManager::$ affectedBySpacingBug ) {
235
235
$ this ->assertEquals (
@@ -252,7 +252,7 @@ public function two_code_in_one_pre()
252
252
253
253
$ response = $ this ->getView ('two-codes-in-one-tag.blade.php ' );
254
254
255
- $ result = "<code class= \"torchlight \" style= \"\"><div class='line'>public function {</div><div class='line'> // test</div><div class='line'>}</div></code> " ;
255
+ $ result = "<code data-lang= \" php \" class= \"torchlight \" style= \"\"><div class='line'>public function {</div><div class='line'> // test</div><div class='line'>}</div></code> " ;
256
256
257
257
if (BladeManager::$ affectedBySpacingBug ) {
258
258
$ this ->assertEquals (
@@ -287,9 +287,9 @@ public function two_components_work()
287
287
$ response = $ this ->getView ('two-simple-php-hello-world.blade.php ' );
288
288
289
289
$ expected = <<<EOT
290
- <pre><code class="torchlight1" style="background-color: #111111;">response 1</code></pre>
290
+ <pre><code data-lang="php" class="torchlight1" style="background-color: #111111;">response 1</code></pre>
291
291
292
- <pre><code class="torchlight2" style="background-color: #222222;">response 2</code></pre>
292
+ <pre><code data-lang="php" class="torchlight2" style="background-color: #222222;">response 2</code></pre>
293
293
EOT ;
294
294
295
295
$ this ->assertEquals ($ expected , $ response ->content ());
0 commit comments