@@ -90,7 +90,7 @@ |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | - * @return string |
|
| 93 | + * @return integer |
|
| 94 | 94 | */ |
| 95 | 95 | public static function getCounter() { |
| 96 | 96 | return static::$taskCount; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | /** |
| 47 | 47 | * Executes the task |
| 48 | 48 | * |
| 49 | - * @return array Results of the test |
|
| 49 | + * @return string Results of the test |
|
| 50 | 50 | */ |
| 51 | 51 | public function execute() { |
| 52 | 52 | \Tracy\Debugger::timer($this->name); |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | public function execute() { |
| 52 | 52 | \Tracy\Debugger::timer($this->name); |
| 53 | 53 | Environment::resetCounter(); |
| 54 | - $output = ""; |
|
| 54 | + $output = ""; |
|
| 55 | 55 | ob_start(); |
| 56 | 56 | if($this->skip) { |
| 57 | 57 | Environment::printLine("****Skipping job $this->name****"); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | /** |
| 55 | 55 | * Executes all jobs of the runner |
| 56 | 56 | * |
| 57 | - * @return array Results of the test suit |
|
| 57 | + * @return string Results of the test suit |
|
| 58 | 58 | * @deprecated since version 1.0 |
| 59 | 59 | */ |
| 60 | 60 | public function run() { |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | 149 | * @param \MyTester\Job $job |
| 150 | - * @return array |
|
| 150 | + * @return string |
|
| 151 | 151 | */ |
| 152 | 152 | protected function runJob(Job $job) { |
| 153 | 153 | if(!$job->skip) { |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | } elseif($value instanceof \Nette\Utils\ArrayHash) { |
| 30 | 30 | $skip = false; |
| 31 | 31 | foreach($value as $k => $v) { |
| 32 | - switch ($k) { |
|
| 32 | + switch($k) { |
|
| 33 | 33 | case "php": |
| 34 | 34 | $skip = version_compare(PHP_VERSION, $v, "<"); |
| 35 | 35 | break; |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | if(!$job->skip) { |
| 154 | 154 | $this->setUp(); |
| 155 | 155 | } |
| 156 | - $output = $job->execute(); |
|
| 156 | + $output = $job->execute(); |
|
| 157 | 157 | if(!$job->skip) { |
| 158 | 158 | $this->tearDown(); |
| 159 | 159 | } |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | } else { |
| 207 | 207 | Environment::testResult("The variable is $type."); |
| 208 | 208 | } |
| 209 | - } elseif (!$value instanceof $type) { |
|
| 209 | + } elseif(!$value instanceof $type) { |
|
| 210 | 210 | $actual = is_object($value) ? get_class($value) : gettype($value); |
| 211 | 211 | Environment::testResult("The variable is instance of $actual.", false); |
| 212 | 212 | } else { |