Test Failed
Branch stable (45988a)
by Jakub
03:03
created
src/Environment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Job.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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****");
Please login to merge, or discard this patch.
src/Runner.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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() {
Please login to merge, or discard this patch.
src/TestCase.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Assert.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.