X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FPHPUnit4And6Compat.php;h=1ef0c916839d689f63fef00eddc8b3f21e9a424c;hb=33415e2930b8e583fe81ec026608c0af523f7afe;hp=79ce634fab75ddc3b520cf75196d0f0398250d1c;hpb=70d9fbb0bfacaf837b7e8efb3770245d646ab522;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/PHPUnit4And6Compat.php b/tests/phpunit/PHPUnit4And6Compat.php index 79ce634fab..1ef0c91683 100644 --- a/tests/phpunit/PHPUnit4And6Compat.php +++ b/tests/phpunit/PHPUnit4And6Compat.php @@ -130,4 +130,18 @@ trait PHPUnit4And6Compat { // ->disallowMockingUnknownTypes() ->getMock(); } + + /** + * Marks the current test as risky. This + * is a forward port of the markAsRisky function that + * was introduced in PHPUnit 5.7.6. + */ + public function markAsRisky() { + if ( is_callable( 'parent::markAsRisky' ) ) { + return parent::markAsRisky(); + } + + // "risky" tests are not supported in phpunit 4, so just ignore + } + }