function FixtureManipulatorTest::tearDown

Same name and namespace in other branches
  1. 11.x core/modules/package_manager/tests/src/Kernel/FixtureManipulatorTest.php \Drupal\Tests\package_manager\Kernel\FixtureManipulatorTest::tearDown()

@todo Remove the line below when https://github.com/phpstan/phpstan-phpunit/issues/187 is fixed. @phpstan-ignore-next-line

Overrides PackageManagerKernelTestBase::tearDown

File

core/modules/package_manager/tests/src/Kernel/FixtureManipulatorTest.php, line 273

Class

FixtureManipulatorTest
Tests Drupal\fixture_manipulator\FixtureManipulator.

Namespace

Drupal\Tests\package_manager\Kernel

Code

protected function tearDown() : void {
  try {
    parent::tearDown();
  } catch (\Exception $exception) {
    if (!(get_class($exception) === get_class($this->expectedTearDownException) && $exception->getMessage() === $this->expectedTearDownException
      ->getMessage())) {
      throw $exception;
    }
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.