function 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 281

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.