comparison vendor/squizlabs/php_codesniffer/tests/TestSuite7.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
1 <?php
2 /**
3 * A PHP_CodeSniffer specific test suite for PHPUnit.
4 *
5 * @author Greg Sherwood <gsherwood@squiz.net>
6 * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
7 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
8 */
9
10 namespace PHP_CodeSniffer\Tests;
11
12 use PHPUnit\Framework\TestSuite as PHPUnit_TestSuite;
13 use PHPUnit\Framework\TestResult;
14
15 class TestSuite extends PHPUnit_TestSuite
16 {
17
18
19 /**
20 * Runs the tests and collects their result in a TestResult.
21 *
22 * @param \PHPUnit\Framework\TestResult $result A test result.
23 *
24 * @return \PHPUnit\Framework\TestResult
25 */
26 public function run(TestResult $result=null): TestResult
27 {
28 $result = parent::run($result);
29 printPHPCodeSnifferTestOutput();
30 return $result;
31
32 }//end run()
33
34
35 }//end class