summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-02-09 11:40:59 (GMT)
committerNathaniel Catchpole2016-02-09 11:40:59 (GMT)
commitdcc5beda46af18eb1481a6e6adb4f3df638ba57a (patch)
tree43a7ed73b9419f2c32a46c8684108702993067e6
parent91ff7ed154620fd0c300e354939550cda3038219 (diff)
Issue #2602536 by cosmicdreams: Unused local variable in testSerialization()
-rw-r--r--core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php
index ad05400..6b84d40 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php
@@ -36,10 +36,7 @@ class DependencySerializationTest extends UnitTestCase {
$dependencySerialization->setContainer($container);
$string = serialize($dependencySerialization);
- $object = unserialize($string);
-
- $string = serialize($dependencySerialization);
- /** @var \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy $object */
+ /** @var \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy $dependencySerialization */
$dependencySerialization = unserialize($string);
$this->assertSame($service, $dependencySerialization->service);