Skip to content

Commit ab1fab2

Browse files
Merge branch '2.7' into 2.8
* 2.7: [Console] Add missing `@require` annotation in test Fix merge [appveyor] Fix failure reporting [symfony#17634] move DebugBundle license file backport GlobTest from 2.7 branch Move licenses according to new best practices [FrameworkBundle] Remove unused code in test [2.3] Fixed an undefined variable in Glob::toRegex simplified a test fix container cache key generation [Form] fix option name in changelog [Translation] Add resources from fallback locale [DependencyInjection] enforce tags to have a name [YAML] Refine the return value of Yaml::parse() Conflicts: src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php
2 parents 6232b23 + e874754 commit ab1fab2

File tree

24 files changed

+128
-12
lines changed

24 files changed

+128
-12
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ install:
5353
- if [[ $deps != skip ]]; then COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'); fi;
5454
- if [[ $deps != skip && $deps ]]; then php .travis.php $TRAVIS_COMMIT_RANGE $TRAVIS_BRANCH $COMPONENTS; fi;
5555
- if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then SYMFONY_VERSION=$(git ls-remote --heads | grep -o '/[1-9].*' | tail -n 1 | sed s/.//); else SYMFONY_VERSION=$(cat composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9.]*'); fi;
56-
- if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then git fetch origin $SYMFONY_VERSION; git checkout -m FETCH_HEAD; fi;
56+
- if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then git fetch origin $SYMFONY_VERSION; git checkout -m FETCH_HEAD; COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'); fi;
5757
- if [[ $deps = high && ${SYMFONY_VERSION%.*} != $(git show $(git ls-remote --heads | grep -FA1 /$SYMFONY_VERSION | tail -n 1):composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9]*' | head -n 1) ]]; then LEGACY=,legacy; fi;
5858
- export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev;
5959
- if [[ ! $deps ]]; then composer update --prefer-dist; else export SYMFONY_DEPRECATIONS_HELPER=weak; fi;

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ init:
1414
- SET PHP=1
1515
- SET ANSICON=121x90 (121x90)
1616
- SET SYMFONY_PHPUNIT_SKIPPED_TESTS=phpunit.skipped
17+
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
1718

1819
install:
1920
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
@@ -58,7 +59,6 @@ install:
5859

5960
test_script:
6061
- cd c:\projects\symfony
61-
- Setlocal EnableDelayedExpansion
6262
- SET X=0
6363
- copy /Y c:\php\php.ini-min c:\php\php.ini
6464
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ protected function createContainer(array $data = array())
513513

514514
protected function createContainerFromFile($file, $data = array())
515515
{
516-
$cacheKey = md5($file.serialize($data));
516+
$cacheKey = md5(get_class($this).$file.serialize($data));
517517
if (isset(self::$containerCache[$cacheKey])) {
518518
return self::$containerCache[$cacheKey];
519519
}

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/PhpFrameworkExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function loadFromFile(ContainerBuilder $container, $file)
2828
*/
2929
public function testAssetsCannotHavePathAndUrl()
3030
{
31-
$container = $this->createContainerFromClosure(function ($container) {
31+
$this->createContainerFromClosure(function ($container) {
3232
$container->loadFromExtension('framework', array(
3333
'assets' => array(
3434
'base_urls' => 'http://cdn.example.com',
@@ -43,7 +43,7 @@ public function testAssetsCannotHavePathAndUrl()
4343
*/
4444
public function testAssetPackageCannotHavePathAndUrl()
4545
{
46-
$container = $this->createContainerFromClosure(function ($container) {
46+
$this->createContainerFromClosure(function ($container) {
4747
$container->loadFromExtension('framework', array(
4848
'assets' => array(
4949
'packages' => array(

src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ public function testNoInteraction()
351351
$this->assertEquals('not yet', $dialog->ask($this->createInputInterfaceMock(false), $this->createOutputInterface(), $question));
352352
}
353353

354+
/**
355+
* @requires function mb_strwidth
356+
*/
354357
public function testChoiceOutputFormattingQuestionForUtf8Keys()
355358
{
356359
$question = 'Lorem ipsum?';

0 commit comments

Comments
 (0)