Completed
Pull Request — master (#71)
by Sullivan
01:27
created
tests/TestCase.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -5,6 +5,10 @@
 block discarded – undo
5 5
 // PHPUnit >=6 Backward Compatibility
6 6
 if (class_exists('\PHPUnit\Framework\TestCase')) {
7 7
   abstract class TestCase extends \PHPUnit\Framework\TestCase {
8
+
9
+    /**
10
+     * @param string $class
11
+     */
8 12
     public function getMock($class) {
9 13
       return $this->getMockBuilder($class)->getMock();
10 14
     }
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 
5 5
 // PHPUnit >=6 Backward Compatibility
6 6
 if (class_exists('\PHPUnit\Framework\TestCase')) {
7
-  abstract class TestCase extends \PHPUnit\Framework\TestCase {
7
+    abstract class TestCase extends \PHPUnit\Framework\TestCase {
8 8
     public function getMock($class) {
9
-      return $this->getMockBuilder($class)->getMock();
9
+        return $this->getMockBuilder($class)->getMock();
10
+    }
10 11
     }
11
-  }
12 12
 } else {
13
-  abstract class TestCase extends \PHPUnit_Framework_TestCase {}
13
+    abstract class TestCase extends \PHPUnit_Framework_TestCase {}
14 14
 }
Please login to merge, or discard this patch.