You are here

protected function DeprecationListenerTrait::deprecationStartTest in Drupal 8

2 calls to DeprecationListenerTrait::deprecationStartTest()
DrupalListener::startTest in core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/DrupalListener.php
DrupalListener::startTest in core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/DrupalListener.php

File

core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php, line 27

Class

DeprecationListenerTrait
Removes deprecations that we are yet to fix.

Namespace

Drupal\Tests\Listeners

Code

protected function deprecationStartTest($test) {
  if ($test instanceof TestCase) {
    if ('disabled' !== getenv('SYMFONY_DEPRECATIONS_HELPER')) {
      $this
        ->registerErrorHandler($test);
    }
    if ($this
      ->willBeIsolated($test)) {
      putenv('DRUPAL_EXPECTED_DEPRECATIONS_SERIALIZE=' . tempnam(sys_get_temp_dir(), 'exdep'));
    }
  }
}