@@ -39,7 +39,7 @@ public function it_sends_a_simple_request_with_no_response()
3939 $ response = $ this ->getView ('simple-php-hello-world.blade.php ' );
4040
4141 $ 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> ' ,
4343 $ response ->content ()
4444 );
4545
@@ -66,7 +66,7 @@ public function it_sends_a_simple_request_with_highlighted_response()
6666 $ response = $ this ->getView ('simple-php-hello-world.blade.php ' );
6767
6868 $ 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> ' ,
7070 $ response ->content ()
7171 );
7272 }
@@ -83,7 +83,7 @@ public function it_sends_a_simple_request_with_style()
8383 $ response = $ this ->getView ('simple-php-hello-world-with-style.blade.php ' );
8484
8585 $ 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> ' ,
8787 $ response ->content ()
8888 );
8989 }
@@ -100,7 +100,7 @@ public function classes_get_merged()
100100 $ response = $ this ->getView ('simple-php-hello-world-with-classes.blade.php ' );
101101
102102 $ 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> ' ,
104104 $ response ->content ()
105105 );
106106 }
@@ -117,7 +117,7 @@ public function attributes_are_preserved()
117117 $ response = $ this ->getView ('simple-php-hello-world-with-attributes.blade.php ' );
118118
119119 $ 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> ' ,
121121 $ response ->content ()
122122 );
123123 }
@@ -134,7 +134,7 @@ public function inline_keeps_its_spaces()
134134 $ response = $ this ->getView ('an-inline-component.blade.php ' );
135135
136136 $ 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 ' ,
138138 $ response ->content ()
139139 );
140140 }
@@ -151,7 +151,7 @@ public function inline_swaps_run()
151151 $ response = $ this ->getView ('an-inline-component-with-swaps.blade.php ' );
152152
153153 $ 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 ' ,
155155 $ response ->content ()
156156 );
157157 }
@@ -168,7 +168,7 @@ public function inline_processors_run()
168168 $ response = $ this ->getView ('an-inline-component-with-post-processors.blade.php ' );
169169
170170 $ 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 ' ,
172172 $ response ->content ()
173173 );
174174 }
@@ -229,7 +229,7 @@ public function dedent_works_properly()
229229
230230 $ response = $ this ->getView ('dedent_works_properly.blade.php ' );
231231
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> " ;
233233
234234 if (BladeManager::$ affectedBySpacingBug ) {
235235 $ this ->assertEquals (
@@ -252,7 +252,7 @@ public function two_code_in_one_pre()
252252
253253 $ response = $ this ->getView ('two-codes-in-one-tag.blade.php ' );
254254
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> " ;
256256
257257 if (BladeManager::$ affectedBySpacingBug ) {
258258 $ this ->assertEquals (
@@ -287,9 +287,9 @@ public function two_components_work()
287287 $ response = $ this ->getView ('two-simple-php-hello-world.blade.php ' );
288288
289289 $ 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>
291291
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>
293293EOT ;
294294
295295 $ this ->assertEquals ($ expected , $ response ->content ());
0 commit comments