@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | class StaticMockTestClass |
3 | 3 | { |
4 | - public static function doSomething() |
|
5 | - { |
|
6 | - } |
|
4 | + public static function doSomething() |
|
5 | + { |
|
6 | + } |
|
7 | 7 | |
8 | - public static function doSomethingElse() |
|
9 | - { |
|
10 | - return static::doSomething(); |
|
11 | - } |
|
8 | + public static function doSomethingElse() |
|
9 | + { |
|
10 | + return static::doSomething(); |
|
11 | + } |
|
12 | 12 | } |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | class PartialMockTestClass |
3 | 3 | { |
4 | - public $constructorCalled = false; |
|
4 | + public $constructorCalled = false; |
|
5 | 5 | |
6 | - public function __construct() |
|
7 | - { |
|
8 | - $this->constructorCalled = true; |
|
9 | - } |
|
6 | + public function __construct() |
|
7 | + { |
|
8 | + $this->constructorCalled = true; |
|
9 | + } |
|
10 | 10 | |
11 | - public function doSomething() |
|
12 | - { |
|
13 | - } |
|
11 | + public function doSomething() |
|
12 | + { |
|
13 | + } |
|
14 | 14 | |
15 | - public function doAnotherThing() |
|
16 | - { |
|
17 | - } |
|
15 | + public function doAnotherThing() |
|
16 | + { |
|
17 | + } |
|
18 | 18 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | interface AnotherInterface |
3 | 3 | { |
4 | - public function doSomethingElse(); |
|
4 | + public function doSomethingElse(); |
|
5 | 5 | } |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | class SomeClass |
3 | 3 | { |
4 | - public function doSomething($a, $b) |
|
5 | - { |
|
6 | - return; |
|
7 | - } |
|
4 | + public function doSomething($a, $b) |
|
5 | + { |
|
6 | + return; |
|
7 | + } |
|
8 | 8 | |
9 | - public function doSomethingElse($c) |
|
10 | - { |
|
11 | - return; |
|
12 | - } |
|
9 | + public function doSomethingElse($c) |
|
10 | + { |
|
11 | + return; |
|
12 | + } |
|
13 | 13 | } |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | class ClassThatImplementsSerializable implements Serializable |
3 | 3 | { |
4 | - public function serialize() |
|
5 | - { |
|
6 | - return get_object_vars($this); |
|
7 | - } |
|
4 | + public function serialize() |
|
5 | + { |
|
6 | + return get_object_vars($this); |
|
7 | + } |
|
8 | 8 | |
9 | - public function unserialize($serialized) |
|
10 | - { |
|
11 | - foreach (unserialize($serialized) as $key => $value) { |
|
12 | - $this->{$key} = $value; |
|
13 | - } |
|
14 | - } |
|
9 | + public function unserialize($serialized) |
|
10 | + { |
|
11 | + foreach (unserialize($serialized) as $key => $value) { |
|
12 | + $this->{$key} = $value; |
|
13 | + } |
|
14 | + } |
|
15 | 15 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | interface InterfaceWithStaticMethod |
3 | 3 | { |
4 | - public static function staticMethod(); |
|
4 | + public static function staticMethod(); |
|
5 | 5 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class Bar |
3 | 3 | { |
4 | - public function doSomethingElse() |
|
5 | - { |
|
6 | - return 'result'; |
|
7 | - } |
|
4 | + public function doSomethingElse() |
|
5 | + { |
|
6 | + return 'result'; |
|
7 | + } |
|
8 | 8 | } |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | class MethodCallback |
3 | 3 | { |
4 | - public static function staticCallback() |
|
5 | - { |
|
6 | - $args = func_get_args(); |
|
4 | + public static function staticCallback() |
|
5 | + { |
|
6 | + $args = func_get_args(); |
|
7 | 7 | |
8 | - if ($args == ['foo', 'bar']) { |
|
9 | - return 'pass'; |
|
10 | - } |
|
11 | - } |
|
8 | + if ($args == ['foo', 'bar']) { |
|
9 | + return 'pass'; |
|
10 | + } |
|
11 | + } |
|
12 | 12 | |
13 | - public function nonStaticCallback() |
|
14 | - { |
|
15 | - $args = func_get_args(); |
|
13 | + public function nonStaticCallback() |
|
14 | + { |
|
15 | + $args = func_get_args(); |
|
16 | 16 | |
17 | - if ($args == ['foo', 'bar']) { |
|
18 | - return 'pass'; |
|
19 | - } |
|
20 | - } |
|
17 | + if ($args == ['foo', 'bar']) { |
|
18 | + return 'pass'; |
|
19 | + } |
|
20 | + } |
|
21 | 21 | } |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | function functionCallback() |
3 | 3 | { |
4 | - $args = func_get_args(); |
|
4 | + $args = func_get_args(); |
|
5 | 5 | |
6 | - if ($args == ['foo', 'bar']) { |
|
7 | - return 'pass'; |
|
8 | - } |
|
6 | + if ($args == ['foo', 'bar']) { |
|
7 | + return 'pass'; |
|
8 | + } |
|
9 | 9 | } |