mirror of
https://github.com/elyby/accounts.git
synced 2024-11-06 16:21:08 +05:30
27 lines
1013 B
Diff
27 lines
1013 B
Diff
|
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.
|