One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
phpMyAdmin
/
vendor
/
symfony
/
polyfill-util
/
Edit File:
TestListenerForV5.php
<?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 TestListenerForV5 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); } 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); } protected function setUp() { TestListenerTrait::$enabledPolyfills = $this->suite->getName(); } protected function tearDown() { TestListenerTrait::$enabledPolyfills = false; } }
Simpan