Skip to content
Snippets Groups Projects
Unverified Commit 9317e0f0 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Fix test traits for phpunit 9

parent b611bc31
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -49,7 +49,7 @@ trait ClientServiceTrait {
*
* @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);
......
......@@ -24,8 +24,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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment