Verified Commit d8ceffab 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 d51837f8
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -8,7 +8,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;

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