Skip to content

Commit 107fe8b

Browse files
committed
re-adding indenter
1 parent bc26394 commit 107fe8b

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

tests/AbstractIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Component\Filesystem\Filesystem;
88
use SymfonyDocsBuilder\BuildConfig;
99

10-
class AbstractIntegrationTest extends TestCase
10+
abstract class AbstractIntegrationTest extends TestCase
1111
{
1212
protected function createBuildConfig(string $sourceDir): BuildConfig
1313
{

tests/IntegrationTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ public function testParseUnitBlock(string $blockName)
101101

102102
$actualCrawler = new Crawler($actualHtml);
103103
$expectedCrawler = new Crawler($expectedHtml);
104+
$indenter = $this->createIndenter();
104105

105106
$this->assertSame(
106-
trim($expectedCrawler->filter('body')->html()),
107-
trim($actualCrawler->filter('body')->html())
107+
$indenter->indent(trim($expectedCrawler->filter('body')->html())),
108+
$indenter->indent(trim($actualCrawler->filter('body')->html()))
108109
);
109110
}
110111

tests/fixtures/expected/blocks/code-blocks/terminal.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<div translate="no" class="notranslate codeblock codeblock-loc-1 codeblock-terminal codeblock-bash">
2+
<div class="codeblock-scroll">
3+
<pre class="codeblock-lines">1</pre>
4+
<pre class="codeblock-code"><code>git <span
5+
class="hljs-built_in">clone</span> git@github.com:symfony/symfony.git
6+
</code></pre>
7+
</div>
8+
</div>
19
<div translate="no" class="notranslate codeblock codeblock-loc-1 codeblock-terminal codeblock-bash">
210
<div class="codeblock-scroll">
311
<pre class="codeblock-lines">1
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div class="admonition admonition-seealso ">
2-
<p class="admonition-title">
3-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor">
4-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1" />
5-
</svg>
6-
See also
7-
</p>
8-
<p>Also check out the homepage</p>
9-
</div>
2+
<p class="admonition-title">
3+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor">
4+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"/>
5+
</svg>
6+
See also
7+
</p>
8+
<p>Also check out the homepage</p>
9+
</div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="admonition admonition-versionadded ">
2+
<p class="admonition-title">
3+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewbox="0 0 24 24" stroke="currentColor">
4+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"></path>
5+
</svg>
6+
New in version 4.1
7+
8+
</p>
9+
<p>This option was introduced in Symfony 2.6 and replaces another option, which is available prior to 2.6.</p>

0 commit comments

Comments
 (0)