[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Summary view] [Print] [Text view]
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 use PHPUnit\Framework\AssertionFailedError; 15 use PHPUnit\Framework\Test; 16 use PHPUnit\Framework\TestListener as TestListenerInterface; 17 use PHPUnit\Framework\TestSuite; 18 use PHPUnit\Framework\Warning; 19 20 /** 21 * @author Nicolas Grekas <p@tchwork.com> 22 */ 23 class TestListenerForV6 extends TestSuite implements TestListenerInterface 24 { 25 private $suite; 26 private $trait; 27 28 public function __construct(TestSuite $suite = null) 29 { 30 if ($suite) { 31 $this->suite = $suite; 32 $this->setName($suite->getName().' with polyfills enabled'); 33 $this->addTest($suite); 34 } 35 $this->trait = new TestListenerTrait(); 36 } 37 38 public function startTestSuite(TestSuite $suite) 39 { 40 $this->trait->startTestSuite($suite); 41 } 42 43 public function addError(Test $test, \Exception $e, $time) 44 { 45 $this->trait->addError($test, $e, $time); 46 } 47 48 public function addWarning(Test $test, Warning $e, $time) 49 { 50 } 51 52 public function addFailure(Test $test, AssertionFailedError $e, $time) 53 { 54 $this->trait->addError($test, $e, $time); 55 } 56 57 public function addIncompleteTest(Test $test, \Exception $e, $time) 58 { 59 } 60 61 public function addRiskyTest(Test $test, \Exception $e, $time) 62 { 63 } 64 65 public function addSkippedTest(Test $test, \Exception $e, $time) 66 { 67 } 68 69 public function endTestSuite(TestSuite $suite) 70 { 71 } 72 73 public function startTest(Test $test) 74 { 75 } 76 77 public function endTest(Test $test, $time) 78 { 79 } 80 81 public static function warning($message) 82 { 83 return parent::warning($message); 84 } 85 86 protected function setUp() 87 { 88 TestListenerTrait::$enabledPolyfills = $this->suite->getName(); 89 } 90 91 protected function tearDown() 92 { 93 TestListenerTrait::$enabledPolyfills = false; 94 } 95 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |