Skip to content

Commit

Permalink
Suppress PHPUnit 9 deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
malberts committed Dec 29, 2021
1 parent c581605 commit 054e482
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/phpunit/Integration/I18nJsonFileIntegrityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SRF\Tests\Integration;

use SMW\Tests\PHPUnitCompat;
use SMW\Tests\Utils\UtilityFactory;

/**
Expand All @@ -15,6 +16,8 @@
*/
class I18nJsonFileIntegrityTest extends \PHPUnit_Framework_TestCase {

use PHPUnitCompat;

/**
* @dataProvider i18nFileProvider
*/
Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/Unit/Formats/GalleryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use TraditionalImageGallery;
use Title;
use SMW\Test\QueryPrinterRegistryTestCase;
use SMW\Tests\PHPUnitCompat;

/**
* Tests for the SRF\Gallery class.
Expand All @@ -25,6 +26,8 @@
*/
class GalleryTest extends QueryPrinterRegistryTestCase {

use PHPUnitCompat;

private $queryResult;
private $title;

Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/Unit/Formats/ValueRankTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace SRF\Tests\Unit\Formats;

use SMW\Test\QueryPrinterRegistryTestCase;
use SMW\Tests\PHPUnitCompat;
use SRFValueRank;

/**
Expand All @@ -23,6 +24,8 @@
*/
class ValueRankTest extends QueryPrinterRegistryTestCase {

use PHPUnitCompat;

/**
* @see QueryPrinterRegistryTestCase::getFormats
*
Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/Unit/Outline/ListTreeBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SRF\Tests\Outline;

use SMW\Tests\PHPUnitCompat;
use SRF\Outline\ListTreeBuilder;
use SRF\Outline\OutlineTree;

Expand All @@ -16,6 +17,8 @@
*/
class ListTreeBuilderTest extends \PHPUnit_Framework_TestCase {

use PHPUnitCompat;

public function testCanConstruct() {

$this->assertInstanceOf(
Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/Unit/Outline/TemplateBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SRF\Tests\Outline;

use SMW\Tests\PHPUnitCompat;
use SRF\Outline\TemplateBuilder;
use SRF\Outline\OutlineTree;

Expand All @@ -16,6 +17,8 @@
*/
class TemplateBuilderTest extends \PHPUnit_Framework_TestCase {

use PHPUnitCompat;

public function testCanConstruct() {

$this->assertInstanceOf(
Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/Unit/ResourceFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SRF\Tests;

use SMW\Tests\PHPUnitCompat;
use SRF\ResourceFormatter;

/**
Expand All @@ -15,6 +16,8 @@
*/
class ResourceFormatterTest extends \PHPUnit_Framework_TestCase {

use PHPUnitCompat;

public function testSession() {

$this->assertContains(
Expand Down

0 comments on commit 054e482

Please sign in to comment.