[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/polyfill-util/ -> TestListener.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of the Symfony package.
   5   *
   6   * (c) Fabien Potencier <fabien@symfony.com>
   7   *
   8   * For the full copyright and license information, please view the LICENSE
   9   * file that was distributed with this source code.
  10   */
  11  
  12  namespace Symfony\Polyfill\Util;
  13  
  14  if (class_exists('PHPUnit_Runner_Version') && version_compare(\PHPUnit_Runner_Version::id(), '6.0.0', '<')) {
  15      class_alias('Symfony\Polyfill\Util\TestListenerForV5', 'Symfony\Polyfill\Util\TestListener');
  16  // Using an early return instead of a else does not work when using the PHPUnit phar due to some weird PHP behavior (the class
  17  // gets defined without executing the code before it and so the definition is not properly conditional)
  18  } elseif (version_compare(\PHPUnit\Runner\Version::id(), '7.0.0', '<')) {
  19      class_alias('Symfony\Polyfill\Util\TestListenerForV6', 'Symfony\Polyfill\Util\TestListener');
  20  } else {
  21      class_alias('Symfony\Polyfill\Util\TestListenerForV7', 'Symfony\Polyfill\Util\TestListener');
  22  }
  23  
  24  if (false) {
  25      class TestListener
  26      {
  27      }
  28  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1