mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Fix tests
This commit is contained in:
26
patches/codeception-phpunit-8-fix.patch
Normal file
26
patches/codeception-phpunit-8-fix.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff --git a/src/Codeception/Test/Cest.php b/src/Codeception/Test/Cest.php
|
||||
index c644ed2e..5426bf3f 100644
|
||||
--- a/src/Codeception/Test/Cest.php
|
||||
+++ b/src/Codeception/Test/Cest.php
|
||||
@@ -150,7 +150,7 @@ protected function executeTestMethod($I)
|
||||
$this->invoke($this->testMethod, [$I, $this->scenario]);
|
||||
}
|
||||
|
||||
- public function toString()
|
||||
+ public function toString(): string
|
||||
{
|
||||
return sprintf('%s: %s', ReflectionHelper::getClassShortName($this->getTestClass()), Message::ucfirst($this->getFeature()));
|
||||
}
|
||||
diff --git a/src/Codeception/Test/Test.php b/src/Codeception/Test/Test.php
|
||||
index f5e8426f..99c9f0ae 100644
|
||||
--- a/src/Codeception/Test/Test.php
|
||||
+++ b/src/Codeception/Test/Test.php
|
||||
@@ -55,7 +55,7 @@ abstract class Test implements TestInterface, Interfaces\Descriptive
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
- abstract public function toString();
|
||||
+ abstract public function toString(): string;
|
||||
|
||||
/**
|
||||
* Runs a test and collects its result in a TestResult instance.
|
Reference in New Issue
Block a user