Skip to content

Commit b3706d4

Browse files
committed
Working around deprecation errors to get the test suite to pass
1 parent 0ab615a commit b3706d4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

phpunit.xml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<php>
1111
<ini name="error_reporting" value="-1" />
1212
<env name="TEST_DATABASE_DSN" value="mysql://root:@127.0.0.1:3306/test_maker" />
13+
<!-- See #237 -->
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors" />
1315
</php>
1416

1517
<testsuites>

src/Test/MakerTestEnvironment.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,15 @@ private function buildFlexSkeleton()
338338
MakerTestProcess::create('composer require phpunit browser-kit symfony/css-selector', $this->flexPath)
339339
->run();
340340

341+
// temporarily ignoring indirect deprecations - see #237
342+
$replacements = [
343+
[
344+
'filename' => 'phpunit.xml.dist',
345+
'find' => '</php>',
346+
'replace' => ' <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors" />'."\n".' </php>',
347+
],
348+
];
349+
341350
MakerTestProcess::create('php bin/console cache:clear --no-warmup', $this->flexPath)
342351
->run();
343352
}

0 commit comments

Comments
 (0)