[symfony/panther] leverage the new add-lines configurator (#1215)

This commit is contained in:
Nicolas Grekas
2023-06-19 14:36:41 +02:00
committed by GitHub
parent 356ad033b1
commit dfe6f33076
6 changed files with 8 additions and 19 deletions
-4
View File
@@ -30,10 +30,6 @@
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
<!-- Run `composer require symfony/panther` before enabling this extension -->
<!--
<extensions>
<extension class="Symfony\Component\Panther\ServerExtension" />
</extensions>
-->
</phpunit>
-4
View File
@@ -33,10 +33,6 @@
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
<!-- Run `composer require symfony/panther` before enabling this extension -->
<!--
<extensions>
<extension class="Symfony\Component\Panther\ServerExtension" />
</extensions>
-->
</phpunit>
+8
View File
@@ -12,5 +12,13 @@
"#RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz; \\",
"#\ttar -zxf geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz -C /usr/bin; \\",
"#\trm geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz"
],
"add-lines": [
{
"file": "phpunit.xml.dist",
"content": " <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
"position": "after_target",
"target": "<extensions>"
}
]
}
-3
View File
@@ -7,6 +7,3 @@
<fg=green>vendor/bin/bdi detect drivers</>
This step is not necessary when using Docker.
* To use Panther with PHPUnit,
uncomment the snippet registering the Panther extension in <fg=green>phpunit.xml.dist</>
@@ -31,10 +31,6 @@
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
<!-- Run `composer require symfony/panther` before enabling this extension -->
<!--
<extensions>
<extension class="Symfony\Component\Panther\ServerExtension" />
</extensions>
-->
</phpunit>
@@ -33,10 +33,6 @@
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
<!-- Run `composer require symfony/panther` before enabling this extension -->
<!--
<extensions>
<extension class="Symfony\Component\Panther\ServerExtension" />
</extensions>
-->
</phpunit>