Skip to content

Commit

Permalink
how about just using @requires docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Jan 25, 2024
1 parent 81f1fc0 commit d697f28
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tests/Maker/MakeFunctionalTestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* @group legacy
* @requires OSFAMILY Linux
*/
class MakeFunctionalTestTest extends MakerTestCase
{
Expand All @@ -28,22 +29,11 @@ protected function getMakerClass(): string
public function getTestDetails()
{
yield 'it_generates_test_with_panther' => [$this->createMakerTest()
->preRun(function () {
dump(['SKIP_TEST_PRERUN' => $_SERVER['MAKER_SKIP_PANTHER_TEST']]);

if ($_SERVER['MAKER_SKIP_PANTHER_TEST'] ?? false) {
$this->markTestSkipped('Panther test skipped - MAKER_SKIP_PANTHER_TEST set to TRUE.');
}
})
/* @legacy Allows Panther >= 1.x to be installed. (PHP <8.0 support) */
->skipOnSymfony7() // legacy remove when panther supports Symfony 7
->addExtraDependencies('panther:*')
->run(function (MakerTestRunner $runner) {
dump(['SKIP_TEST_PRERUN' => $_SERVER['MAKER_SKIP_PANTHER_TEST']]);

if ($_SERVER['MAKER_SKIP_PANTHER_TEST'] ?? false) {
$this->markTestSkipped('Panther test skipped - MAKER_SKIP_PANTHER_TEST set to TRUE.');
}
self::assertTrue(true);
$runner->copy(
'make-functional/MainController.php',
'src/Controller/MainController.php'
Expand Down

0 comments on commit d697f28

Please sign in to comment.