File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11<?php
2+
23if ( class_exists ( 'PHPUnit\Runner\Version ' ) && version_compare ( PHPUnit \Runner \Version::id (), '6.0 ' , '>= ' ) ) {
4+
35 class_alias ( 'PHPUnit\Framework\TestCase ' , 'PHPUnit_Framework_TestCase ' );
46 class_alias ( 'PHPUnit\Framework\Exception ' , 'PHPUnit_Framework_Exception ' );
57 class_alias ( 'PHPUnit\Framework\ExpectationFailedException ' , 'PHPUnit_Framework_ExpectationFailedException ' );
@@ -12,17 +14,25 @@ class_alias( 'PHPUnit\Framework\TestSuite', 'PHPUnit_Framework_
1214 class_alias ( 'PHPUnit\Framework\TestListener ' , 'PHPUnit_Framework_TestListener ' );
1315 class_alias ( 'PHPUnit\Util\GlobalState ' , 'PHPUnit_Util_GlobalState ' );
1416 class_alias ( 'PHPUnit\Util\Getopt ' , 'PHPUnit_Util_Getopt ' );
17+
1518 class PHPUnit_Util_Test extends PHPUnit \Util \Test {
19+
1620 public static function getTickets ( $ className , $ methodName ) {
1721 $ annotations = self ::parseTestMethodAnnotations ( $ className , $ methodName );
22+
1823 $ tickets = array ();
24+
1925 if ( isset ( $ annotations ['class ' ]['ticket ' ] ) ) {
2026 $ tickets = $ annotations ['class ' ]['ticket ' ];
2127 }
28+
2229 if ( isset ( $ annotations ['method ' ]['ticket ' ] ) ) {
2330 $ tickets = array_merge ( $ tickets , $ annotations ['method ' ]['ticket ' ] );
2431 }
32+
2533 return array_unique ( $ tickets );
2634 }
35+
2736 }
37+
2838}
You can’t perform that action at this time.
0 commit comments