Skip to content

Commit

Permalink
Make test suite compatible with PHPUnit 9.4 (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Oct 2, 2020
1 parent 3f2da07 commit b5d9323
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,7 +1,7 @@
all: csfix static-analysis test
@echo "Done."

vendor: composer.json
vendor: composer.json composer.lock
composer update
touch vendor

Expand Down
19 changes: 4 additions & 15 deletions test/fixtures/warning_tests/HasWarningsTest.php
Expand Up @@ -6,6 +6,8 @@

use PHPUnit\Framework\TestCase;

use function uniqid;

/**
* @internal
*/
Expand All @@ -16,21 +18,8 @@ public function testPassingTest(): void
$this->assertTrue(true);
}

// phpcs:ignore SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedMethod
private function testPrivateTest(): void
{
$this->assertTrue(true);
}

// phpcs:disable SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedMethod

/**
* @dataProvider llamas
*/
private function testMissingDataProvider(): void
public function testForcedWarning(): void
{
$this->assertTrue(true);
$this->addWarning(uniqid('paratest_warning_'));
}

// phpcs:enable
}

0 comments on commit b5d9323

Please sign in to comment.