Skip to content

Commit

Permalink
Fix test traits for phpunit 9
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Nov 10, 2020
1 parent b67b669 commit 336d919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/lib/Traits/ClientServiceTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ trait ClientServiceTrait {
* @param string $originalClassName
* @return \PHPUnit\Framework\MockObject\MockObject
*/
abstract protected function createMock($originalClassName);
abstract protected function createMock(string $originalClassName);

/**
* Returns a matcher that matches when the method is executed
Expand All @@ -49,7 +49,7 @@ abstract protected function createMock($originalClassName);
*
* @since Method available since Release 3.0.0
*/
abstract public function any();
abstract static public function any();

protected function setUpClientServiceTrait() {
$this->clientService = $this->createMock(IClientService::class);
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Traits/EncryptionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ trait EncryptionTrait {
abstract protected function registerStorageWrapper($name, $wrapper);

// from phpunit
abstract protected function markTestSkipped(string $message = ''): void;
abstract protected function assertTrue($condition, string $message = ''): void;
abstract static protected function markTestSkipped(string $message = ''): void;
abstract static protected function assertTrue($condition, string $message = ''): void;

private $encryptionWasEnabled;

Expand Down

0 comments on commit 336d919

Please sign in to comment.