8000 Merge branch '4.4' · symfony/symfony@93d206d · GitHub
[go: up one dir, main page]

Skip to content

Commit 93d206d

Browse files
Merge branch '4.4'
* 4.4: Fix symfony/phpunit-bridge not up to date in phpunit 4.8 test suite Sync "not implementing the method" deprecations messages Twig's namespaces can be null
2 parents 625fb52 + f6b73e1 commit 93d206d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@
119119
if (5.1 <= $PHPUNIT_VERSION && $PHPUNIT_VERSION < 5.4) {
120120
passthru("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\"");
121121
}
122+
123+
passthru("$COMPOSER config --unset platform");
122124
if (file_exists($path = $root.'/vendor/symfony/phpunit-bridge')) {
123125
passthru("$COMPOSER require --no-update symfony/phpunit-bridge \"*@dev\"");
124126
passthru("$COMPOSER config repositories.phpunit-bridge path ".escapeshellarg(str_replace('/', DIRECTORY_SEPARATOR, $path)));

src/Symfony/Component/Intl/Tests/ResourceBundleTestCase.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
namespace Symfony\Component\Intl\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1516
use Symfony\Component\Intl\Locale;
1617

1718
abstract class ResourceBundleTestCase extends TestCase
1819
{
20+
use ForwardCompatTestTrait;
21+
1922
// Include the locales statically so that the data providers are decoupled
2023
// from the Intl class. Otherwise tests will fail if the intl extension is
2124
// not loaded, because it is NOT possible to skip the execution of data
@@ -696,7 +699,7 @@ abstract class ResourceBundleTestCase extends TestCase
696699

697700
private static $rootLocales;
698701

699-
protected function setUp(): void
702+
private function doSetUp()
700703
{
701704
Locale::setDefault('en');
702705
Locale::setDefaultFallback('en');

0 commit comments

Comments
 (0)
0