+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Bridge\PhpUnit;
/**
* Catch deprecation notices and print a summary report at the end of the test suite
*
- * @internal
+ * @author Nicolas Grekas
*/
class DeprecationErrorHandler
{
private static $isRegistered = false;
- public static function register()
+ public static function register($strict = false)
{
if (self::$isRegistered) {
return;
@@ -28,9 +33,9 @@ public static function register()
'legacy' => array(),
'other' => array(),
);
- $deprecationHandler = function ($type, $msg, $file, $line, $context) use (&$deprecations) {
+ $deprecationHandler = function ($type, $msg, $file, $line, $context) use (&$deprecations, $strict) {
if (E_USER_DEPRECATED !== $type) {
- return PHPUnit_Util_ErrorHandler::handleError($type, $msg, $file, $line, $context);
+ return \PHPUnit_Util_ErrorHandler::handleError($type, $msg, $file, $line, $context);
}
$trace = debug_backtrace(PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT : true);
@@ -44,19 +49,38 @@ public static function register()
$class = isset($trace[$i]['object']) ? get_class($trace[$i]['object']) : $trace[$i]['class'];
$method = $trace[$i]['function'];
- $type = 0 === strpos($method, 'testLegacy') || 0 === strpos($method, 'provideLegacy') || 0 === strpos($method, 'getLegacy') || strpos($class, '\Legacy') ? 'legacy' : 'remaining';
+ $group = 0 === strpos($method, 'testLegacy') || 0 === strpos($method, 'provideLegacy') || 0 === strpos($method, 'getLegacy') || strpos($class, '\Legacy') || in_array('legacy', \PHPUnit_Util_Test::getGroups($class, $method), true) ? 'legacy' : 'remaining';
- if ('legacy' === $type && 0 === (error_reporting() & E_USER_DEPRECATED)) {
- @++$deprecations[$type]['Silenced']['count'];
+ if ('legacy' === $group && 0 === (error_reporting() & E_USER_DEPRECATED)) {
+ $ref =& $deprecations[$group]['Silenced']['count'];
+ ++$ref;
} else {
- @++$deprecations[$type][$msg]['count'];
- @++$deprecations[$type][$msg][$class.'::'.$method];
+ $ref =& $deprecations[$group][$msg]['count'];
+ ++$ref;
+ $ref =& $deprecations[$group][$msg][$class.'::'.$method];
+ ++$ref;
}
} else {
- $type = 'other';
- @++$deprecations[$type][$msg]['count'];
+ $group = 'other';
+ $ref =& $deprecations[$group][$msg]['count'];
+ ++$ref;
+ }
+ ++$deprecations[$group.'Count'];
+ unset($trace, $ref);
+
+ if ('legacy' !== $group) {
+ try {
+ $e = $strict ? error_reporting(-1) : error_reporting();
+ $result = \PHPUnit_Util_ErrorHandler::handleError($type, $msg, $file, $line, $context);
+ error_reporting($e);
+ } catch (\Exception $x) {
+ error_reporting($e);
+
+ throw $x;
+ }
+
+ return $result;
}
- ++$deprecations[$type.'Count'];
};
$oldErrorHandler = set_error_handler($deprecationHandler);
@@ -68,20 +92,16 @@ public static function register()
}
} else {
self::$isRegistered = true;
- register_shutdown_function(function () use (&$deprecations, $deprecationHandler) {
-
- $colorize = new \SebastianBergmann\Environment\Console();
-
- if ($colorize->hasColorSupport()) {
- $colorize = function ($str, $red) {
- $color = $red ? '41;37' : '43;30';
-
- return "\x1B[{$color}m{$str}\x1B[0m";
- };
- } else {
- $colorize = function ($str) {return $str;};
- }
+ if (self::hasColorSupport()) {
+ $colorize = function ($str, $red) {
+ $color = $red ? '41;37' : '43;30';
+ return "\x1B[{$color}m{$str}\x1B[0m";
+ };
+ } else {
+ $colorize = function ($str) {return $str;};
+ }
+ register_shutdown_function(function () use (&$deprecations, $deprecationHandler, $colorize) {
$currErrorHandler = set_error_handler('var_dump');
restore_error_handler();
@@ -93,13 +113,13 @@ public static function register()
return $b['count'] - $a['count'];
};
- foreach (array('remaining', 'legacy', 'other') as $type) {
- if ($deprecations[$type]) {
- echo "\n", $colorize(sprintf('%s deprecation notices (%d)', ucfirst($type), $deprecations[$type.'Count']), 'legacy' !== $type), "\n";
+ foreach (array('remaining', 'legacy', 'other') as $group) {
+ if ($deprecations[$group]) {
+ echo "\n", $colorize(sprintf('%s deprecation notices (%d)', ucfirst($group), $deprecations[$group.'Count']), 'legacy' !== $group), "\n";
- uasort($deprecations[$type], $cmp);
+ uasort($deprecations[$group], $cmp);
- foreach ($deprecations[$type] as $msg => $notices) {
+ foreach ($deprecations[$group] as $msg => $notices) {
echo "\n", $msg, ': ', $notices['count'], "x\n";
arsort($notices);
@@ -118,16 +138,13 @@ public static function register()
});
}
}
-}
-
-if (class_exists('PHPUnit_Util_ErrorHandler')) {
- DeprecationErrorHandler::register();
-}
-$loader = require_once __DIR__.'/vendor/autoload.php';
-
-use Doctrine\Common\Annotations\AnnotationRegistry;
-
-AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
+ private static function hasColorSupport()
+ {
+ if ('\\' === DIRECTORY_SEPARATOR) {
+ return false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI');
+ }
-return $loader;
+ return defined('STDOUT') && function_exists('posix_isatty') && @posix_isatty(STDOUT);
+ }
+}
diff --git a/src/Symfony/Bridge/PhpUnit/LICENSE b/src/Symfony/Bridge/PhpUnit/LICENSE
new file mode 100644
index 0000000000000..ef1cde91a61c3
--- /dev/null
+++ b/src/Symfony/Bridge/PhpUnit/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2014-2015 Fabien Potencier
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/src/Symfony/Bridge/PhpUnit/README.md b/src/Symfony/Bridge/PhpUnit/README.md
new file mode 100644
index 0000000000000..4e8db55d5634e
--- /dev/null
+++ b/src/Symfony/Bridge/PhpUnit/README.md
@@ -0,0 +1,62 @@
+PHPUnit Bridge
+==============
+
+Provides utilities for PHPUnit, especially user deprecation notices management.
+
+It comes with the following features:
+
+ * disable the garbage collector;
+ * auto-register `class_exists` to load Doctrine annotations;
+ * print a user deprecation notices summary at the end of the test suite.
+
+Handling user deprecation notices is sensitive to the SYMFONY_DEPRECATIONS_HELPER
+environment variable. This env var configures 3 behaviors depending on its value:
+
+ * when set to `strict`, all but legacy-tagged deprecation notices will make tests
+ fail. This is the recommended mode for best forward compatibility.
+ * `weak` on the contrary will make tests ignore all deprecation notices.
+ This is the recommended mode for legacy projects that must use deprecated
+ interfaces for backward compatibility reasons.
+ * any other value will respect the current error reporting level.
+
+All three modes will display a summary of deprecation notices at the end of the
+test suite, split in two groups:
+
+ * **Legacy** deprecation notices denote tests that explicitly test some legacy
+ interfaces. In all 3 modes, deprecation notices triggered in a legacy-tagged
+ test do never make a test fail. There are four ways to mark a test as legacy:
+ - make its class start with the `Legacy` prefix;
+ - make its method start with `testLegacy`;
+ - make its data provider start with `provideLegacy` or `getLegacy`;
+ - add the `@group legacy` annotation to its class or method.
+ * **Remaining/Other** deprecation notices are all other (non-legacy)
+ notices, grouped by message, test class and method.
+
+Usage
+-----
+
+Add this bridge to the `require-dev` section of your composer.json file
+(not in `require`) with e.g.
+`composer require --dev "symfony/phpunit-bridge"`.
+
+When running `phpunit`, you will see a summary of deprecation notices at the end
+of the test suite.
+
+Deprecation notices in the **Remaining/Other** section need some thought.
+You have to decide either to:
+
+ * update your code to not use deprecated interfaces anymore, thus gaining better
+ forward compatibility;
+ * or move them to the **Legacy** section (by using one of the above way).
+
+After reviewing them, you should silence deprecations in the **Legacy** section
+if you think they are triggered by tests dedicated to testing deprecated
+interfaces. To do so, add the following line at the beginning of your legacy
+test case or in the `setUp()` method of your legacy test class:
+`$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);`
+
+Last but not least, you should then configure your C.I. to the reporting mode
+that is appropriated to your project by setting SYMFONY_DEPRECATIONS_HELPER to
+`strict`, `weak` or empty. It is recommended to start with `weak` mode, upgrade
+your code as described above, then when the *Remaining/Other* sections are empty,
+move to `strict` to keep forward compatibility on the long run.
diff --git a/src/Symfony/Bridge/PhpUnit/bootstrap.php b/src/Symfony/Bridge/PhpUnit/bootstrap.php
new file mode 100644
index 0000000000000..6bd37ddde249d
--- /dev/null
+++ b/src/Symfony/Bridge/PhpUnit/bootstrap.php
@@ -0,0 +1,31 @@
+= 50400 && gc_enabled()) {
+ // Disabling Zend Garbage Collection to prevent segfaults with PHP5.4+
+ // https://bugs.php.net/bug.php?id=53976
+ gc_disable();
+}
+
+if (class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
+ AnnotationRegistry::registerLoader('class_exists');
+}
+
+switch (getenv('SYMFONY_DEPRECATIONS_HELPER')) {
+ case 'strict':
+ DeprecationErrorHandler::register(true);
+ break;
+
+ case 'weak':
+ error_reporting(error_reporting() & ~E_USER_DEPRECATED);
+ // No break;
+ default:
+ DeprecationErrorHandler::register(false);
+ break;
+}
diff --git a/src/Symfony/Bridge/PhpUnit/composer.json b/src/Symfony/Bridge/PhpUnit/composer.json
new file mode 100644
index 0000000000000..01fe791ac477c
--- /dev/null
+++ b/src/Symfony/Bridge/PhpUnit/composer.json
@@ -0,0 +1,32 @@
+{
+ "name": "symfony/phpunit-bridge",
+ "type": "symfony-bridge",
+ "description": "Symfony PHPUnit Bridge",
+ "keywords": [],
+ "homepage": "http://symfony.com",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "http://symfony.com/contributors"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.9"
+ },
+ "autoload": {
+ "files": [ "bootstrap.php" ],
+ "psr-0": { "Symfony\\Bridge\\PhpUnit\\": "" }
+ },
+ "target-dir": "Symfony/Bridge/PhpUnit",
+ "minimum-stability": "dev",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.7-dev"
+ }
+ }
+}
diff --git a/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist b/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist
new file mode 100644
index 0000000000000..7f631b2ece48b
--- /dev/null
+++ b/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+ ./Tests/
+
+
+
+
+
+ ./
+
+ ./Tests
+ ./vendor
+
+
+
+
diff --git a/src/Symfony/Bridge/ProxyManager/composer.json b/src/Symfony/Bridge/ProxyManager/composer.json
index 70a8d0912b89e..123b93b03e1fc 100644
--- a/src/Symfony/Bridge/ProxyManager/composer.json
+++ b/src/Symfony/Bridge/ProxyManager/composer.json
@@ -21,6 +21,7 @@
"ocramius/proxy-manager": "~0.4|~1.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/config": "~2.3|~3.0.0"
},
"autoload": {
diff --git a/src/Symfony/Bridge/ProxyManager/phpunit.xml.dist b/src/Symfony/Bridge/ProxyManager/phpunit.xml.dist
index 8d0294c6eb242..60980be9e531e 100644
--- a/src/Symfony/Bridge/ProxyManager/phpunit.xml.dist
+++ b/src/Symfony/Bridge/ProxyManager/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Bridge/Swiftmailer/composer.json b/src/Symfony/Bridge/Swiftmailer/composer.json
index 99ae9a7be8909..49ef1f572370d 100644
--- a/src/Symfony/Bridge/Swiftmailer/composer.json
+++ b/src/Symfony/Bridge/Swiftmailer/composer.json
@@ -19,6 +19,9 @@
"php": ">=5.3.9",
"swiftmailer/swiftmailer": ">=4.2.0,<6.0-dev"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"suggest": {
"symfony/http-kernel": ""
},
diff --git a/src/Symfony/Bridge/Twig/composer.json b/src/Symfony/Bridge/Twig/composer.json
index 8e5dfe46ae5a2..09855bd1622cd 100644
--- a/src/Symfony/Bridge/Twig/composer.json
+++ b/src/Symfony/Bridge/Twig/composer.json
@@ -20,6 +20,7 @@
"twig/twig": "~1.18"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/finder": "~2.3|~3.0.0",
"symfony/form": "~2.6|~3.0.0",
"symfony/http-kernel": "~2.3|~3.0.0",
diff --git a/src/Symfony/Bridge/Twig/phpunit.xml.dist b/src/Symfony/Bridge/Twig/phpunit.xml.dist
index cf2e90264ba57..10c0be1142712 100644
--- a/src/Symfony/Bridge/Twig/phpunit.xml.dist
+++ b/src/Symfony/Bridge/Twig/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Bundle/DebugBundle/composer.json b/src/Symfony/Bundle/DebugBundle/composer.json
index 33c05e58e0cbd..3e669094c29b2 100644
--- a/src/Symfony/Bundle/DebugBundle/composer.json
+++ b/src/Symfony/Bundle/DebugBundle/composer.json
@@ -22,6 +22,7 @@
"symfony/var-dumper": "~2.6|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/config": "~2.3|~3.0.0",
"symfony/dependency-injection": "~2.3|~3.0.0"
},
diff --git a/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist b/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist
index 8eb57b64eab31..cbde5628a3987 100644
--- a/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist
+++ b/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Bundle/FrameworkBundle/composer.json b/src/Symfony/Bundle/FrameworkBundle/composer.json
index 485051c4cd5c4..15fed5abbdd2c 100644
--- a/src/Symfony/Bundle/FrameworkBundle/composer.json
+++ b/src/Symfony/Bundle/FrameworkBundle/composer.json
@@ -33,6 +33,7 @@
"doctrine/annotations": "~1.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/asset": "~2.7|~3.0.0",
"symfony/browser-kit": "~2.4|~3.0.0",
"symfony/console": "~2.6|~3.0.0",
diff --git a/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist b/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist
index 22ffb9c1e5d4f..269adda917a1b 100644
--- a/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist
+++ b/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Bundle/SecurityBundle/composer.json b/src/Symfony/Bundle/SecurityBundle/composer.json
index cc21852e21709..6b4552627a99a 100644
--- a/src/Symfony/Bundle/SecurityBundle/composer.json
+++ b/src/Symfony/Bundle/SecurityBundle/composer.json
@@ -21,6 +21,7 @@
"symfony/http-kernel": "~2.2|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/browser-kit": "~2.4|~3.0.0",
"symfony/console": "~2.3|~3.0.0",
"symfony/css-selector": "~2.0,>=2.0.5|~3.0.0",
diff --git a/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist b/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist
index 231b22d8bf3f1..0ff2b570e2736 100644
--- a/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist
+++ b/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Bundle/TwigBundle/composer.json b/src/Symfony/Bundle/TwigBundle/composer.json
index 975cee73ceae8..8bbef5a939e04 100644
--- a/src/Symfony/Bundle/TwigBundle/composer.json
+++ b/src/Symfony/Bundle/TwigBundle/composer.json
@@ -23,6 +23,7 @@
"symfony/http-kernel": "~2.7|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/stopwatch": "~2.2|~3.0.0",
"symfony/dependency-injection": "~2.2|~3.0.0",
"symfony/expression-language": "~2.4|~3.0.0",
diff --git a/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist b/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist
index 94a8bbd399f67..763b8b68bf826 100644
--- a/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist
+++ b/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Bundle/WebProfilerBundle/composer.json b/src/Symfony/Bundle/WebProfilerBundle/composer.json
index 5c2051d430410..2af5c45d1d74f 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/composer.json
+++ b/src/Symfony/Bundle/WebProfilerBundle/composer.json
@@ -22,6 +22,7 @@
"symfony/twig-bridge": "~2.7|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/config": "~2.2|~3.0.0",
"symfony/console": "~2.3|~3.0.0",
"symfony/dependency-injection": "~2.2|~3.0.0",
diff --git a/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist b/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist
index 0056f47b84f5e..f449adf319706 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist
+++ b/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Asset/composer.json b/src/Symfony/Component/Asset/composer.json
index cf058bb3b20b1..177a12970a91b 100644
--- a/src/Symfony/Component/Asset/composer.json
+++ b/src/Symfony/Component/Asset/composer.json
@@ -22,6 +22,7 @@
"symfony/http-foundation": ""
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/http-foundation": "~2.4"
},
"autoload": {
diff --git a/src/Symfony/Component/Asset/phpunit.xml.dist b/src/Symfony/Component/Asset/phpunit.xml.dist
index 547ecdaa7a44e..3e53da45d9ea3 100644
--- a/src/Symfony/Component/Asset/phpunit.xml.dist
+++ b/src/Symfony/Component/Asset/phpunit.xml.dist
@@ -6,6 +6,10 @@
colors="true"
bootstrap="vendor/autoload.php"
>
+
+
+
+
./Tests/
diff --git a/src/Symfony/Component/BrowserKit/composer.json b/src/Symfony/Component/BrowserKit/composer.json
index b59321d592e92..cbfc5a681d2d5 100644
--- a/src/Symfony/Component/BrowserKit/composer.json
+++ b/src/Symfony/Component/BrowserKit/composer.json
@@ -20,6 +20,7 @@
"symfony/dom-crawler": "~2.0,>=2.0.5|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/process": "~2.0,>=2.0.5|~3.0.0",
"symfony/css-selector": "~2.0,>=2.0.5|~3.0.0"
},
diff --git a/src/Symfony/Component/BrowserKit/phpunit.xml.dist b/src/Symfony/Component/BrowserKit/phpunit.xml.dist
index fe2aa44e99823..d76b2b98afd80 100644
--- a/src/Symfony/Component/BrowserKit/phpunit.xml.dist
+++ b/src/Symfony/Component/BrowserKit/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/ClassLoader/composer.json b/src/Symfony/Component/ClassLoader/composer.json
index 66ce1122746b3..409435c7a193f 100644
--- a/src/Symfony/Component/ClassLoader/composer.json
+++ b/src/Symfony/Component/ClassLoader/composer.json
@@ -20,6 +20,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/finder": "~2.0,>=2.0.5|~3.0.0"
},
"autoload": {
diff --git a/src/Symfony/Component/ClassLoader/phpunit.xml.dist b/src/Symfony/Component/ClassLoader/phpunit.xml.dist
index 4228f7681e98b..4856db5be65d1 100644
--- a/src/Symfony/Component/ClassLoader/phpunit.xml.dist
+++ b/src/Symfony/Component/ClassLoader/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Config/composer.json b/src/Symfony/Component/Config/composer.json
index aedf7235ef72c..8ba3609687d02 100644
--- a/src/Symfony/Component/Config/composer.json
+++ b/src/Symfony/Component/Config/composer.json
@@ -19,6 +19,9 @@
"php": ">=5.3.9",
"symfony/filesystem": "~2.3|~3.0.0"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\Config\\": "" }
},
diff --git a/src/Symfony/Component/Config/phpunit.xml.dist b/src/Symfony/Component/Config/phpunit.xml.dist
index 326db410773f3..3fe6fd87c8499 100644
--- a/src/Symfony/Component/Config/phpunit.xml.dist
+++ b/src/Symfony/Component/Config/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Console/composer.json b/src/Symfony/Component/Console/composer.json
index 86e5a471bcad2..f11d243b0adcc 100644
--- a/src/Symfony/Component/Console/composer.json
+++ b/src/Symfony/Component/Console/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/event-dispatcher": "~2.1|~3.0.0",
"symfony/process": "~2.1|~3.0.0",
"psr/log": "~1.0"
diff --git a/src/Symfony/Component/Console/phpunit.xml.dist b/src/Symfony/Component/Console/phpunit.xml.dist
index 908e0aac7f6d8..ae0dcbeaba41c 100644
--- a/src/Symfony/Component/Console/phpunit.xml.dist
+++ b/src/Symfony/Component/Console/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/CssSelector/composer.json b/src/Symfony/Component/CssSelector/composer.json
index dd60194f72939..004c378aaac2f 100644
--- a/src/Symfony/Component/CssSelector/composer.json
+++ b/src/Symfony/Component/CssSelector/composer.json
@@ -22,6 +22,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\CssSelector\\": "" }
},
diff --git a/src/Symfony/Component/CssSelector/phpunit.xml.dist b/src/Symfony/Component/CssSelector/phpunit.xml.dist
index 974af3ff02e77..14a320c873c11 100644
--- a/src/Symfony/Component/CssSelector/phpunit.xml.dist
+++ b/src/Symfony/Component/CssSelector/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Debug/composer.json b/src/Symfony/Component/Debug/composer.json
index 42dc36518dbc0..dc94bac7150e9 100644
--- a/src/Symfony/Component/Debug/composer.json
+++ b/src/Symfony/Component/Debug/composer.json
@@ -23,6 +23,7 @@
"symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/class-loader": "~2.2|~3.0.0",
"symfony/http-kernel": "~2.3.24|~2.5.9|~2.6,>=2.6.2|~3.0.0",
"symfony/http-foundation": "~2.1|~3.0.0"
diff --git a/src/Symfony/Component/Debug/phpunit.xml.dist b/src/Symfony/Component/Debug/phpunit.xml.dist
index 82d69681dcd21..20b0313f0cd89 100644
--- a/src/Symfony/Component/Debug/phpunit.xml.dist
+++ b/src/Symfony/Component/Debug/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/DependencyInjection/composer.json b/src/Symfony/Component/DependencyInjection/composer.json
index 6ee96fa1f74ee..615e7b30d11a4 100644
--- a/src/Symfony/Component/DependencyInjection/composer.json
+++ b/src/Symfony/Component/DependencyInjection/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/yaml": "~2.1|~3.0.0",
"symfony/config": "~2.2|~3.0.0",
"symfony/expression-language": "~2.6|~3.0.0"
diff --git a/src/Symfony/Component/DependencyInjection/phpunit.xml.dist b/src/Symfony/Component/DependencyInjection/phpunit.xml.dist
index b5b3ed2ea83d0..86252d0456ba9 100644
--- a/src/Symfony/Component/DependencyInjection/phpunit.xml.dist
+++ b/src/Symfony/Component/DependencyInjection/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/DomCrawler/composer.json b/src/Symfony/Component/DomCrawler/composer.json
index 4fdebe9124ab2..3390cbfa15403 100644
--- a/src/Symfony/Component/DomCrawler/composer.json
+++ b/src/Symfony/Component/DomCrawler/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/css-selector": "~2.3|~3.0.0"
},
"suggest": {
diff --git a/src/Symfony/Component/DomCrawler/phpunit.xml.dist b/src/Symfony/Component/DomCrawler/phpunit.xml.dist
index c099dac312120..d15dd6a48ed1e 100644
--- a/src/Symfony/Component/DomCrawler/phpunit.xml.dist
+++ b/src/Symfony/Component/DomCrawler/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/EventDispatcher/composer.json b/src/Symfony/Component/EventDispatcher/composer.json
index 3058344057c74..9b762b90fcdcd 100644
--- a/src/Symfony/Component/EventDispatcher/composer.json
+++ b/src/Symfony/Component/EventDispatcher/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/dependency-injection": "~2.6|~3.0.0",
"symfony/expression-language": "~2.6|~3.0.0",
"symfony/config": "~2.0,>=2.0.5|~3.0.0",
diff --git a/src/Symfony/Component/EventDispatcher/phpunit.xml.dist b/src/Symfony/Component/EventDispatcher/phpunit.xml.dist
index a710ca311c41e..ae0586e0b33de 100644
--- a/src/Symfony/Component/EventDispatcher/phpunit.xml.dist
+++ b/src/Symfony/Component/EventDispatcher/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/ExpressionLanguage/composer.json b/src/Symfony/Component/ExpressionLanguage/composer.json
index 7dcd64a29583f..98e51310c2527 100644
--- a/src/Symfony/Component/ExpressionLanguage/composer.json
+++ b/src/Symfony/Component/ExpressionLanguage/composer.json
@@ -18,6 +18,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\ExpressionLanguage\\": "" }
},
diff --git a/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist b/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist
index 641e0d4944621..183770651e26d 100644
--- a/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist
+++ b/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist
@@ -12,9 +12,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Filesystem/composer.json b/src/Symfony/Component/Filesystem/composer.json
index 8cb835367a20f..5df8ae7d031d0 100644
--- a/src/Symfony/Component/Filesystem/composer.json
+++ b/src/Symfony/Component/Filesystem/composer.json
@@ -18,6 +18,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\Filesystem\\": "" }
},
diff --git a/src/Symfony/Component/Filesystem/phpunit.xml.dist b/src/Symfony/Component/Filesystem/phpunit.xml.dist
index cd8054f7351b6..7c6ba7aba3fb3 100644
--- a/src/Symfony/Component/Filesystem/phpunit.xml.dist
+++ b/src/Symfony/Component/Filesystem/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Finder/composer.json b/src/Symfony/Component/Finder/composer.json
index 6ea180275fba4..c38df483ee377 100644
--- a/src/Symfony/Component/Finder/composer.json
+++ b/src/Symfony/Component/Finder/composer.json
@@ -18,6 +18,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\Finder\\": "" }
},
diff --git a/src/Symfony/Component/Finder/phpunit.xml.dist b/src/Symfony/Component/Finder/phpunit.xml.dist
index a6ede9df13afb..631e570b9479f 100644
--- a/src/Symfony/Component/Finder/phpunit.xml.dist
+++ b/src/Symfony/Component/Finder/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Form/composer.json b/src/Symfony/Component/Form/composer.json
index f62dc5c62e00e..0cf916c442e54 100644
--- a/src/Symfony/Component/Form/composer.json
+++ b/src/Symfony/Component/Form/composer.json
@@ -23,6 +23,7 @@
"symfony/property-access": "~2.3|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"doctrine/collections": "~1.0",
"symfony/validator": "~2.6|~3.0.0",
"symfony/http-foundation": "~2.2|~3.0.0",
diff --git a/src/Symfony/Component/Form/phpunit.xml.dist b/src/Symfony/Component/Form/phpunit.xml.dist
index 09189b0eff7bc..fd668a9e8b779 100644
--- a/src/Symfony/Component/Form/phpunit.xml.dist
+++ b/src/Symfony/Component/Form/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/HttpFoundation/composer.json b/src/Symfony/Component/HttpFoundation/composer.json
index 3e8b009db76e2..dd25e4b8079a5 100644
--- a/src/Symfony/Component/HttpFoundation/composer.json
+++ b/src/Symfony/Component/HttpFoundation/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/expression-language": "~2.4|~3.0.0"
},
"autoload": {
diff --git a/src/Symfony/Component/HttpFoundation/phpunit.xml.dist b/src/Symfony/Component/HttpFoundation/phpunit.xml.dist
index 3d675609db7b5..9ffdb43a2d744 100644
--- a/src/Symfony/Component/HttpFoundation/phpunit.xml.dist
+++ b/src/Symfony/Component/HttpFoundation/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/HttpKernel/composer.json b/src/Symfony/Component/HttpKernel/composer.json
index de1e9d2277b2e..67850e8362332 100644
--- a/src/Symfony/Component/HttpKernel/composer.json
+++ b/src/Symfony/Component/HttpKernel/composer.json
@@ -23,6 +23,7 @@
"psr/log": "~1.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/browser-kit": "~2.3|~3.0.0",
"symfony/class-loader": "~2.1|~3.0.0",
"symfony/config": "~2.0,>=2.0.5|~3.0.0",
diff --git a/src/Symfony/Component/HttpKernel/phpunit.xml.dist b/src/Symfony/Component/HttpKernel/phpunit.xml.dist
index c6ddea4f6768a..13149663e488a 100644
--- a/src/Symfony/Component/HttpKernel/phpunit.xml.dist
+++ b/src/Symfony/Component/HttpKernel/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Intl/composer.json b/src/Symfony/Component/Intl/composer.json
index 609e871f9117e..e73247864f97f 100644
--- a/src/Symfony/Component/Intl/composer.json
+++ b/src/Symfony/Component/Intl/composer.json
@@ -27,6 +27,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/filesystem": "~2.1|~3.0.0"
},
"suggest": {
diff --git a/src/Symfony/Component/Intl/phpunit.xml.dist b/src/Symfony/Component/Intl/phpunit.xml.dist
index 007d574e85ce9..e42226a1b1240 100644
--- a/src/Symfony/Component/Intl/phpunit.xml.dist
+++ b/src/Symfony/Component/Intl/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Locale/composer.json b/src/Symfony/Component/Locale/composer.json
index 1b5937ac384bc..3adf477b2fd94 100644
--- a/src/Symfony/Component/Locale/composer.json
+++ b/src/Symfony/Component/Locale/composer.json
@@ -19,6 +19,9 @@
"php": ">=5.3.9",
"symfony/intl": "~2.3|~3.0.0"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\Locale\\": "" }
},
diff --git a/src/Symfony/Component/Locale/phpunit.xml.dist b/src/Symfony/Component/Locale/phpunit.xml.dist
index 24dd5d8028b69..0d9b637cc78d1 100644
--- a/src/Symfony/Component/Locale/phpunit.xml.dist
+++ b/src/Symfony/Component/Locale/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/OptionsResolver/composer.json b/src/Symfony/Component/OptionsResolver/composer.json
index 8720f2b789247..51c68a3badb7b 100644
--- a/src/Symfony/Component/OptionsResolver/composer.json
+++ b/src/Symfony/Component/OptionsResolver/composer.json
@@ -18,6 +18,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\OptionsResolver\\": "" }
},
diff --git a/src/Symfony/Component/OptionsResolver/phpunit.xml.dist b/src/Symfony/Component/OptionsResolver/phpunit.xml.dist
index 43fb0345e3572..5a2316a1c9df5 100644
--- a/src/Symfony/Component/OptionsResolver/phpunit.xml.dist
+++ b/src/Symfony/Component/OptionsResolver/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Process/composer.json b/src/Symfony/Component/Process/composer.json
index 3c47418ead780..e6b1a6e4ea79d 100644
--- a/src/Symfony/Component/Process/composer.json
+++ b/src/Symfony/Component/Process/composer.json
@@ -18,6 +18,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\Process\\": "" }
},
diff --git a/src/Symfony/Component/Process/phpunit.xml.dist b/src/Symfony/Component/Process/phpunit.xml.dist
index a7f26b362181b..b5d605c2efbbe 100644
--- a/src/Symfony/Component/Process/phpunit.xml.dist
+++ b/src/Symfony/Component/Process/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/PropertyAccess/composer.json b/src/Symfony/Component/PropertyAccess/composer.json
index 12ff7dd89ac5a..5110239dbb6b2 100644
--- a/src/Symfony/Component/PropertyAccess/composer.json
+++ b/src/Symfony/Component/PropertyAccess/composer.json
@@ -18,6 +18,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\PropertyAccess\\": "" }
},
diff --git a/src/Symfony/Component/PropertyAccess/phpunit.xml.dist b/src/Symfony/Component/PropertyAccess/phpunit.xml.dist
index d4a0e024ccdae..fcf5f6ae56dd3 100644
--- a/src/Symfony/Component/PropertyAccess/phpunit.xml.dist
+++ b/src/Symfony/Component/PropertyAccess/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Routing/composer.json b/src/Symfony/Component/Routing/composer.json
index ff7944ef1e7f8..252f2bc0e7466 100644
--- a/src/Symfony/Component/Routing/composer.json
+++ b/src/Symfony/Component/Routing/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/config": "~2.2|~3.0.0",
"symfony/http-foundation": "~2.3|~3.0.0",
"symfony/yaml": "~2.0,>=2.0.5|~3.0.0",
diff --git a/src/Symfony/Component/Routing/phpunit.xml.dist b/src/Symfony/Component/Routing/phpunit.xml.dist
index 4e2594d83873a..a9083088a9644 100644
--- a/src/Symfony/Component/Routing/phpunit.xml.dist
+++ b/src/Symfony/Component/Routing/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Security/Acl/composer.json b/src/Symfony/Component/Security/Acl/composer.json
index 4325d8c0e5dd6..2c0401fb29ab9 100644
--- a/src/Symfony/Component/Security/Acl/composer.json
+++ b/src/Symfony/Component/Security/Acl/composer.json
@@ -20,6 +20,7 @@
"symfony/security-core": "~2.4|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"doctrine/common": "~2.2",
"doctrine/dbal": "~2.2",
"psr/log": "~1.0"
diff --git a/src/Symfony/Component/Security/Acl/phpunit.xml.dist b/src/Symfony/Component/Security/Acl/phpunit.xml.dist
index 20d1b803b9d82..755233957585a 100644
--- a/src/Symfony/Component/Security/Acl/phpunit.xml.dist
+++ b/src/Symfony/Component/Security/Acl/phpunit.xml.dist
@@ -12,9 +12,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Security/Core/composer.json b/src/Symfony/Component/Security/Core/composer.json
index 4541f415447a2..f5e317902bc3c 100644
--- a/src/Symfony/Component/Security/Core/composer.json
+++ b/src/Symfony/Component/Security/Core/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/event-dispatcher": "~2.1|~3.0.0",
"symfony/expression-language": "~2.6|~3.0.0",
"symfony/http-foundation": "~2.4|~3.0.0",
diff --git a/src/Symfony/Component/Security/Core/phpunit.xml.dist b/src/Symfony/Component/Security/Core/phpunit.xml.dist
index 7a5f7da9562c5..8a1a2914b095b 100644
--- a/src/Symfony/Component/Security/Core/phpunit.xml.dist
+++ b/src/Symfony/Component/Security/Core/phpunit.xml.dist
@@ -12,9 +12,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Security/Csrf/composer.json b/src/Symfony/Component/Security/Csrf/composer.json
index 7fd71af498460..4d4ff6a94280c 100644
--- a/src/Symfony/Component/Security/Csrf/composer.json
+++ b/src/Symfony/Component/Security/Csrf/composer.json
@@ -20,6 +20,7 @@
"symfony/security-core": "~2.4|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/http-foundation": "~2.1|~3.0.0"
},
"suggest": {
diff --git a/src/Symfony/Component/Security/Csrf/phpunit.xml.dist b/src/Symfony/Component/Security/Csrf/phpunit.xml.dist
index f6e9005bdb116..8f950a3d3d441 100644
--- a/src/Symfony/Component/Security/Csrf/phpunit.xml.dist
+++ b/src/Symfony/Component/Security/Csrf/phpunit.xml.dist
@@ -12,9 +12,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Security/Http/composer.json b/src/Symfony/Component/Security/Http/composer.json
index 007ae75fedce3..80a038708d751 100644
--- a/src/Symfony/Component/Security/Http/composer.json
+++ b/src/Symfony/Component/Security/Http/composer.json
@@ -23,6 +23,7 @@
"symfony/http-kernel": "~2.4|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/routing": "~2.2|~3.0.0",
"symfony/security-csrf": "~2.4|~3.0.0",
"psr/log": "~1.0"
diff --git a/src/Symfony/Component/Security/Http/phpunit.xml.dist b/src/Symfony/Component/Security/Http/phpunit.xml.dist
index 58fe58e132f8e..49b36f271804e 100644
--- a/src/Symfony/Component/Security/Http/phpunit.xml.dist
+++ b/src/Symfony/Component/Security/Http/phpunit.xml.dist
@@ -12,9 +12,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Security/composer.json b/src/Symfony/Component/Security/composer.json
index 946cb72c0a327..af7fad74f0a27 100644
--- a/src/Symfony/Component/Security/composer.json
+++ b/src/Symfony/Component/Security/composer.json
@@ -28,6 +28,7 @@
"symfony/security-http": "self.version"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/intl": "~2.3|~3.0.0",
"symfony/routing": "~2.2|~3.0.0",
"symfony/translation": "~2.0,>=2.0.5|~3.0.0",
diff --git a/src/Symfony/Component/Security/phpunit.xml.dist b/src/Symfony/Component/Security/phpunit.xml.dist
index 7cbf08aed8295..7747b371c1713 100644
--- a/src/Symfony/Component/Security/phpunit.xml.dist
+++ b/src/Symfony/Component/Security/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Serializer/Tests/bootstrap.php b/src/Symfony/Component/Serializer/Tests/bootstrap.php
deleted file mode 100644
index 20ee9d793a4fe..0000000000000
--- a/src/Symfony/Component/Serializer/Tests/bootstrap.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-$loader = require __DIR__.'/../vendor/autoload.php';
-
-Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(function ($class) { return class_exists($class); });
diff --git a/src/Symfony/Component/Serializer/composer.json b/src/Symfony/Component/Serializer/composer.json
index b0364eb21c22d..cffa235e032ae 100644
--- a/src/Symfony/Component/Serializer/composer.json
+++ b/src/Symfony/Component/Serializer/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/yaml": "~2.0|~3.0.0",
"symfony/config": "~2.2|~3.0.0",
"doctrine/annotations": "~1.0",
diff --git a/src/Symfony/Component/Serializer/phpunit.xml.dist b/src/Symfony/Component/Serializer/phpunit.xml.dist
index 308efc737ec98..279e1eb3aa53c 100644
--- a/src/Symfony/Component/Serializer/phpunit.xml.dist
+++ b/src/Symfony/Component/Serializer/phpunit.xml.dist
@@ -4,12 +4,10 @@
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Stopwatch/composer.json b/src/Symfony/Component/Stopwatch/composer.json
index c3ddedea8c9e7..95416bf0ad9a4 100644
--- a/src/Symfony/Component/Stopwatch/composer.json
+++ b/src/Symfony/Component/Stopwatch/composer.json
@@ -18,6 +18,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\Stopwatch\\": "" }
},
diff --git a/src/Symfony/Component/Stopwatch/phpunit.xml.dist b/src/Symfony/Component/Stopwatch/phpunit.xml.dist
index 24e7e4101b8c6..b16dcaebf9a47 100644
--- a/src/Symfony/Component/Stopwatch/phpunit.xml.dist
+++ b/src/Symfony/Component/Stopwatch/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Templating/composer.json b/src/Symfony/Component/Templating/composer.json
index c8d78588ab05a..45b7a2d1b1bd2 100644
--- a/src/Symfony/Component/Templating/composer.json
+++ b/src/Symfony/Component/Templating/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"psr/log": "~1.0"
},
"suggest": {
diff --git a/src/Symfony/Component/Templating/phpunit.xml.dist b/src/Symfony/Component/Templating/phpunit.xml.dist
index 34ca2f294395d..3da1f5de1371c 100644
--- a/src/Symfony/Component/Templating/phpunit.xml.dist
+++ b/src/Symfony/Component/Templating/phpunit.xml.dist
@@ -7,10 +7,9 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
+
./Tests/
diff --git a/src/Symfony/Component/Translation/composer.json b/src/Symfony/Component/Translation/composer.json
index e891028e327d0..50f76efaeb01c 100644
--- a/src/Symfony/Component/Translation/composer.json
+++ b/src/Symfony/Component/Translation/composer.json
@@ -19,6 +19,7 @@
"php": ">=5.3.9"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/config": "~2.3,>=2.3.12|~3.0.0",
"symfony/intl": "~2.3|~3.0.0",
"symfony/yaml": "~2.2|~3.0.0",
diff --git a/src/Symfony/Component/Translation/phpunit.xml.dist b/src/Symfony/Component/Translation/phpunit.xml.dist
index c0777909d2200..16cca4afb7c69 100644
--- a/src/Symfony/Component/Translation/phpunit.xml.dist
+++ b/src/Symfony/Component/Translation/phpunit.xml.dist
@@ -7,10 +7,9 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
+
./Tests/
diff --git a/src/Symfony/Component/Validator/Tests/bootstrap.php b/src/Symfony/Component/Validator/Tests/bootstrap.php
deleted file mode 100644
index 8977ca9e86fd0..0000000000000
--- a/src/Symfony/Component/Validator/Tests/bootstrap.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-$loader = require __DIR__.'/../vendor/autoload.php';
-
-Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(function ($class) {return class_exists($class);});
diff --git a/src/Symfony/Component/Validator/composer.json b/src/Symfony/Component/Validator/composer.json
index 43579b075e7cc..82899712b45e0 100644
--- a/src/Symfony/Component/Validator/composer.json
+++ b/src/Symfony/Component/Validator/composer.json
@@ -20,6 +20,7 @@
"symfony/translation": "~2.4|~3.0.0"
},
"require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0",
"symfony/http-foundation": "~2.1|~3.0.0",
"symfony/intl": "~2.3|~3.0.0",
"symfony/yaml": "~2.0,>=2.0.5|~3.0.0",
diff --git a/src/Symfony/Component/Validator/phpunit.xml.dist b/src/Symfony/Component/Validator/phpunit.xml.dist
index e10097795d076..1bf4391c3c181 100644
--- a/src/Symfony/Component/Validator/phpunit.xml.dist
+++ b/src/Symfony/Component/Validator/phpunit.xml.dist
@@ -4,13 +4,12 @@
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
-
-
-
+
+
./Tests/
diff --git a/src/Symfony/Component/VarDumper/composer.json b/src/Symfony/Component/VarDumper/composer.json
index aa12e24f550b1..0b59b5d67a90c 100644
--- a/src/Symfony/Component/VarDumper/composer.json
+++ b/src/Symfony/Component/VarDumper/composer.json
@@ -18,6 +18,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"suggest": {
"ext-symfony_debug": ""
},
diff --git a/src/Symfony/Component/VarDumper/phpunit.xml.dist b/src/Symfony/Component/VarDumper/phpunit.xml.dist
index ee3d4c2fe3c90..05128b9fa1a34 100644
--- a/src/Symfony/Component/VarDumper/phpunit.xml.dist
+++ b/src/Symfony/Component/VarDumper/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+
diff --git a/src/Symfony/Component/Yaml/composer.json b/src/Symfony/Component/Yaml/composer.json
index 27c9be195e8f8..bc3ffa021a420 100644
--- a/src/Symfony/Component/Yaml/composer.json
+++ b/src/Symfony/Component/Yaml/composer.json
@@ -18,6 +18,9 @@
"require": {
"php": ">=5.3.9"
},
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7|~3.0.0"
+ },
"autoload": {
"psr-0": { "Symfony\\Component\\Yaml\\": "" }
},
diff --git a/src/Symfony/Component/Yaml/phpunit.xml.dist b/src/Symfony/Component/Yaml/phpunit.xml.dist
index 2d11e6fc2cc01..418b2c6c9ad5a 100644
--- a/src/Symfony/Component/Yaml/phpunit.xml.dist
+++ b/src/Symfony/Component/Yaml/phpunit.xml.dist
@@ -7,9 +7,7 @@
bootstrap="vendor/autoload.php"
>
-
-
-
+