Skip to content

Commit 70bbe65

Browse files
committed
minor #259 Working around deprecation errors to get the test suite to pass (weaverryan)
This PR was merged into the 1.0-dev branch. Discussion ---------- Working around deprecation errors to get the test suite to pass This is a repeat of #237. The tests have been failing for too long. I think we need to fix them, and then we can revert later when doctrine/orm v2.6.3 is released. Cheers! Commits ------- b3706d4 Working around deprecation errors to get the test suite to pass
2 parents 9ec8b5e + b3706d4 commit 70bbe65

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)