diff --git a/core/modules/system/lib/Drupal/system/Tests/ServiceProvider/ServiceProviderTest.php b/core/modules/system/lib/Drupal/system/Tests/ServiceProvider/ServiceProviderTest.php
index f25019c..527b57e 100644
--- a/core/modules/system/lib/Drupal/system/Tests/ServiceProvider/ServiceProviderTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/ServiceProvider/ServiceProviderTest.php
@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Definition of Drupal\system\Tests\ServiceProvider\ServiceProviderTest.
+ * Contains \Drupal\system\Tests\ServiceProvider\ServiceProviderTest.
  */
 
 namespace Drupal\system\Tests\ServiceProvider;
@@ -47,16 +47,13 @@ function testServiceProviderRegistration() {
    * Tests that the DIC keeps up with module enable/disable in the same request.
    */
   function testServiceProviderRegistrationDynamic() {
-    $container = \Drupal::getContainer();
     // Uninstall the module and ensure the service provider's service is not registered.
     \Drupal::moduleHandler()->uninstall(array('service_provider_test'));
-    $container = \Drupal::getContainer();
-    $this->assertFalse($container->has('service_provider_test_class'), 'The service_provider_test_class service does not exist in the DIC.');
+    $this->assertFalse(\Drupal::getContainer()->has('service_provider_test_class'), 'The service_provider_test_class service does not exist in the DIC.');
 
     // Install the module and ensure the service provider's service is registered.
     \Drupal::moduleHandler()->install(array('service_provider_test'));
-    $container = \Drupal::getContainer();
-    $this->assertTrue($container->has('service_provider_test_class'), 'The service_provider_test_class service exists in the DIC.');
+    $this->assertTrue(\Drupal::getContainer()->has('service_provider_test_class'), 'The service_provider_test_class service exists in the DIC.');
   }
 
 }
