Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Exception / Stringer / PHPUnitExceptionStringer.php
diff --git a/vendor/behat/behat/src/Behat/Testwork/Exception/Stringer/PHPUnitExceptionStringer.php b/vendor/behat/behat/src/Behat/Testwork/Exception/Stringer/PHPUnitExceptionStringer.php
deleted file mode 100644 (file)
index 0b06299..0000000
+++ /dev/null
@@ -1,47 +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\Exception\Stringer;
-
-use Exception;
-
-/**
- * Strings PHPUnit assertion exceptions.
- *
- * @see ExceptionPresenter
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-final class PHPUnitExceptionStringer implements ExceptionStringer
-{
-    /**
-     * {@inheritdoc}
-     */
-    public function supportsException(Exception $exception)
-    {
-        return $exception instanceof \PHPUnit_Framework_Exception
-            || $exception instanceof \PHPUnit\Framework\Exception;
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function stringException(Exception $exception, $verbosity)
-    {
-        if (!class_exists('PHPUnit\\Framework\\TestFailure')) {
-            return trim(\PHPUnit_Framework_TestFailure::exceptionToString($exception));
-        }
-
-        // PHPUnit assertion exceptions do not include expected / observed info in their
-        // messages, but expect the test listeners to format that info like the following
-        // (see e.g. PHPUnit_TextUI_ResultPrinter::printDefectTrace)
-        return trim(\PHPUnit\Framework\TestFailure::exceptionToString($exception));
-    }
-}