Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Output / Node / EventListener / ChainEventListener.php
diff --git a/vendor/behat/behat/src/Behat/Testwork/Output/Node/EventListener/ChainEventListener.php b/vendor/behat/behat/src/Behat/Testwork/Output/Node/EventListener/ChainEventListener.php
deleted file mode 100644 (file)
index 0c76bac..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-
-/*
- * This file is part of the Behat.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Behat\Testwork\Output\Node\EventListener;
-
-use ArrayIterator;
-use Behat\Testwork\Output\Formatter;
-use Countable;
-use IteratorAggregate;
-use Symfony\Component\EventDispatcher\Event;
-
-/**
- * Used to compose formatter event listeners.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ChainEventListener implements EventListener, Countable, IteratorAggregate
-{
-    /**
-     * @var EventListener[]
-     */
-    private $listeners;
-
-    /**
-     * Initializes collection.
-     *
-     * @param EventListener[] $listeners
-     */
-    public function __construct(array $listeners)
-    {
-        $this->listeners = $listeners;
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function listenEvent(Formatter $formatter, Event $event, $eventName)
-    {
-        foreach ($this->listeners as $listener) {
-            $listener->listenEvent($formatter, $event, $eventName);
-        }
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function count()
-    {
-        return count($this->listeners);
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function getIterator()
-    {
-        return new ArrayIterator($this->listeners);
-    }
-}