-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfixed_compatibility_codeception_with_phpunit.patch
More file actions
35 lines (32 loc) · 1.27 KB
/
Copy pathfixed_compatibility_codeception_with_phpunit.patch
File metadata and controls
35 lines (32 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/src/Codeception/Test/Cest.php b/src/Codeception/Test/Cest.php
index 20f51f5..133951d 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 773f7a3..c00a421 100644
--- a/src/Codeception/Test/Test.php
+++ b/src/Codeception/Test/Test.php
@@ -55,7 +55,7 @@
*
* @return mixed
*/
- abstract public function toString();
+ abstract public function toString() : string;
/**
* Runs a test and collects its result in a TestResult instance.
@@ -64,7 +64,7 @@
* @param \PHPUnit\Framework\TestResult $result
* @return \PHPUnit\Framework\TestResult
*/
- final public function run(\PHPUnit\Framework\TestResult $result = null)
+ final public function run(\PHPUnit\Framework\TestResult $result = null) : \PHPUnit\Framework\TestResult
{
$this->testResult = $result;