Server IP : 184.154.167.98 / Your IP : 18.119.112.208 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/www/fotografico/3rdparty/symfony/polyfill-util/ |
Upload File : |
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Polyfill\Util; /** * @author Nicolas Grekas <p@tchwork.com> */ class LegacyTestListener extends \PHPUnit_Framework_TestSuite implements \PHPUnit_Framework_TestListener { private $suite; private $trait; public function __construct(\PHPUnit_Framework_TestSuite $suite = null) { if ($suite) { $this->suite = $suite; $this->setName($suite->getName().' with polyfills enabled'); $this->addTest($suite); } $this->trait = new TestListenerTrait(); } public function startTestSuite(\PHPUnit_Framework_TestSuite $suite) { $this->trait->startTestSuite($suite); } protected function setUp() { TestListenerTrait::$enabledPolyfills = $this->suite->getName(); } protected function tearDown() { TestListenerTrait::$enabledPolyfills = false; } public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time) { $this->trait->addError($test, $e, $time); } public function addWarning(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_Warning $e, $time) { } public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time) { $this->trait->addError($test, $e, $time); } public function addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) { } public function addRiskyTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) { } public function addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) { } public function endTestSuite(\PHPUnit_Framework_TestSuite $suite) { } public function startTest(\PHPUnit_Framework_Test $test) { } public function endTest(\PHPUnit_Framework_Test $test, $time) { } public static function warning($message) { return parent::warning($message); } }