AfterSymfonyListener.php

Same filename in this branch
  1. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/AfterSymfonyListener.php
  2. 8.9.x core/tests/Drupal/Tests/Listeners/AfterSymfonyListener.php

Namespace

Drupal\TestTools\PhpUnitCompatibility\PhpUnit6

File

core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/AfterSymfonyListener.php

View source
<?php

namespace Drupal\TestTools\PhpUnitCompatibility\PhpUnit6;

use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestListener;
use PHPUnit\Framework\TestListenerDefaultImplementation;

/**
 * Listens to PHPUnit test runs.
 *
 * @internal
 */
class AfterSymfonyListener implements TestListener {
    use TestListenerDefaultImplementation;
    
    /**
     * {@inheritdoc}
     */
    public function endTest(Test $test, $time) {
        restore_error_handler();
    }

}

Classes

Title Deprecated Summary
AfterSymfonyListener Listens to PHPUnit test runs.

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