accounts/patches/codeception-phpunit-8-fix.patch

27 lines
1009 B
Diff
Raw Normal View History

2019-12-15 03:19:54 +05:30
diff --git a/src/Codeception/Test/Cest.php b/src/Codeception/Test/Cest.php
2019-12-21 00:48:09 +05:30
index c644ed2..5426bf3 100644
2019-12-15 03:19:54 +05:30
--- 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
2019-12-21 00:48:09 +05:30
index f5e8426..99c9f0a 100644
2019-12-15 03:19:54 +05:30
--- 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.