diff --git a/composer.lock b/composer.lock index d6f175f..cb9dd3d 100644 --- a/composer.lock +++ b/composer.lock @@ -4326,6 +4326,65 @@ "description": "Symfony CssSelector Component", "homepage": "https://symfony.com", "time": "2017-02-21T08:33:48+00:00" + }, + { + "name": "symfony/phpunit-bridge", + "version": "v3.2.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/phpunit-bridge.git", + "reference": "996374975357b569ea319ec1c98c5ca0f7dda610" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/996374975357b569ea319ec1c98c5ca0f7dda610", + "reference": "996374975357b569ea319ec1c98c5ca0f7dda610", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-zip": "Zip support is required when using bin/simple-phpunit", + "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" + }, + "bin": [ + "bin/simple-phpunit" + ], + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Bridge\\PhpUnit\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony PHPUnit Bridge", + "homepage": "https://symfony.com", + "time": "2017-01-21T17:06:35+00:00" } ], "aliases": [], diff --git a/core/composer.json b/core/composer.json index c77bc30..7a30f19 100644 --- a/core/composer.json +++ b/core/composer.json @@ -44,7 +44,8 @@ "mikey179/vfsStream": "~1.2", "phpunit/phpunit": ">=4.8.28 <5", "symfony/browser-kit": ">=2.8.13 <3.0", - "symfony/css-selector": "~2.8" + "symfony/css-selector": "~2.8", + "symfony/phpunit-bridge": "^3.2" }, "replace": { "drupal/action": "self.version", diff --git a/core/phpunit.xml.dist b/core/phpunit.xml.dist index ef1ae3b..c85258d 100644 --- a/core/phpunit.xml.dist +++ b/core/phpunit.xml.dist @@ -45,6 +45,8 @@ + + diff --git a/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php b/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php index 8aa9d9a..67c4103 100644 --- a/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php +++ b/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php @@ -675,6 +675,8 @@ public function testInitializedForAliases() { * @expectedException \BadMethodCallException * * @dataProvider scopeExceptionTestProvider + * + * @group legacy */ public function testScopeFunctionsWithException($method, $argument) { $callable = [ diff --git a/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php b/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php index a899aaa..1de9ce9 100644 --- a/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php +++ b/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php @@ -209,6 +209,8 @@ public function getParametersDataProvider() { * @covers ::getParameterCall * * @dataProvider getDefinitionsDataProvider + * + * @group legacy */ public function testGetServiceDefinitions($services, $definition_services) { $this->containerDefinition['services'] = $definition_services; @@ -484,6 +486,8 @@ protected function getServiceCall($id, $invalid_behavior = ContainerInterface::E * @covers ::getServiceDefinition * * @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException + * + * @group legacy */ public function testGetServiceDefinitionWithInvalidScope() { $bar_definition = new Definition('\stdClass'); @@ -500,6 +504,8 @@ public function testGetServiceDefinitionWithInvalidScope() { * @covers ::getReferenceCall * * @dataProvider publicPrivateDataProvider + * + * @group legacy */ public function testGetServiceDefinitionWithReferenceToAlias($public) { $bar_definition = new Definition('\stdClass'); @@ -557,6 +563,8 @@ public function publicPrivateDataProvider() { * @covers ::getServiceDefinition * * @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException + * + * @group legacy */ public function testGetServiceDefinitionForDecoratedService() { $bar_definition = new Definition('\stdClass'); diff --git a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php index b9dc671..c9bccce 100644 --- a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php +++ b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php @@ -261,6 +261,8 @@ public function testChainAddRemoveClasses() { * * @covers ::removeClass * @covers ::addClass + * + * @group legacy */ public function testTwigAddRemoveClasses($template, $expected, $seed_attributes = []) { $loader = new \Twig_Loader_String(); diff --git a/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php index c4805bc..7b426f2 100644 --- a/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php +++ b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php @@ -73,6 +73,8 @@ public function setUp() { * Tests the escaping * * @dataProvider providerTestEscaping + * + * @group legacy */ public function testEscaping($template, $expected) { $twig = new \Twig_Environment(NULL, [ @@ -123,6 +125,8 @@ public function providerTestEscaping() { /** * Tests the active_theme function. + * + * @group legacy */ public function testActiveTheme() { $active_theme = $this->getMockBuilder('\Drupal\Core\Theme\ActiveTheme') @@ -183,6 +187,8 @@ public function testActiveThemePath() { * Tests the escaping of objects implementing MarkupInterface. * * @covers ::escapeFilter + * + * @group legacy */ public function testSafeStringEscaping() { $twig = new \Twig_Environment(NULL, [ @@ -267,6 +273,8 @@ public function providerTestRenderVar() { /** * @covers ::escapeFilter * @covers ::bubbleArgMetadata + * + * @group legacy */ public function testEscapeWithGeneratedLink() { $twig = new \Twig_Environment(NULL, [ diff --git a/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php b/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php new file mode 100644 index 0000000..b91d0c3 --- /dev/null +++ b/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php @@ -0,0 +1,24 @@ +assertTrue(TRUE); + } + +}