Verified Commit 961d2326 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3440044 by longwave, quietone, Binoli Lalani, mondrake: Replace catch...

Issue #3440044 by longwave, quietone, Binoli Lalani, mondrake: Replace catch of PHPUnit\Framework\Error\Warning in MarkupInterfaceComparatorTest

(cherry picked from commit b00b1682)
parent e4949440
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\KernelTests\KernelTestBase;
use Drupal\TestTools\Comparator\MarkupInterfaceComparator;
use PHPUnit\Framework\Error\Warning;
use SebastianBergmann\Comparator\Factory;
use SebastianBergmann\Comparator\ComparisonFailure;

@@ -108,7 +107,7 @@ public function dataSetProvider() {
        new FormattableMarkup('GoldFinger', []),
        ['GoldFinger'],
        FALSE,
        Warning::class,
        FALSE,
      ],
      'stdClass vs TranslatableMarkup' => [
        (object) ['GoldFinger'],