function DeprecationListenerTrait::deprecationStartTest

2 calls to DeprecationListenerTrait::deprecationStartTest()
DrupalListener::startTest in core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/DrupalListener.php
DrupalListener::startTest in core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/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'));
        }
    }
}

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