Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / src / Tests / Bootstrap / ErrorContainer.php
diff --git a/web/core/modules/system/src/Tests/Bootstrap/ErrorContainer.php b/web/core/modules/system/src/Tests/Bootstrap/ErrorContainer.php
deleted file mode 100644 (file)
index e8afa4b..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-namespace Drupal\system\Tests\Bootstrap;
-
-use Drupal\Core\DependencyInjection\Container;
-
-/**
- * Container base class which triggers an error.
- */
-class ErrorContainer extends Container {
-
-  /**
-   * {@inheritdoc}
-   */
-  public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) {
-    if ($id === 'http_kernel') {
-      // Enforce a recoverable error.
-      $callable = function (ErrorContainer $container) {
-      };
-      $callable(1);
-    }
-    else {
-      return parent::get($id, $invalidBehavior);
-    }
-  }
-
-}