Skip to content

Commit 7581467

Browse files
committed
Didn't need to remove these lines.
1 parent 55a357d commit 7581467

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/phpunit/phpunit6-compat.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2+
23
if ( 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
}

0 commit comments

Comments
 (0)