Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Tester / Result / TestResults.php
diff --git a/vendor/behat/behat/src/Behat/Testwork/Tester/Result/TestResults.php b/vendor/behat/behat/src/Behat/Testwork/Tester/Result/TestResults.php
deleted file mode 100644 (file)
index 5102f37..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-
-/*
- * This file is part of the Behat Testwork.
- * (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\Tester\Result;
-
-use ArrayIterator;
-use Countable;
-use IteratorAggregate;
-
-/**
- * Aggregates multiple test results into a collection and provides informational API on top of that.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-final class TestResults implements TestResult, Countable, IteratorAggregate
-{
-    const NO_TESTS = -100;
-
-    /**
-     * @var TestResult[]
-     */
-    private $results;
-
-    /**
-     * Initializes test results collection.
-     *
-     * @param TestResult[] $results
-     */
-    public function __construct(array $results = array())
-    {
-        $this->results = $results;
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function isPassed()
-    {
-        return self::PASSED == $this->getResultCode();
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function getResultCode()
-    {
-        $resultCode = static::NO_TESTS;
-        foreach ($this->results as $result) {
-            $resultCode = max($resultCode, $result->getResultCode());
-        }
-
-        return $resultCode;
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function count()
-    {
-        return count($this->results);
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function getIterator()
-    {
-        return new ArrayIterator($this->results);
-    }
-
-    /**
-     * Returns test results array.
-     *
-     * @return TestResult[]
-     */
-    public function toArray()
-    {
-        return $this->results;
-    }
-}