Completed
Push — master ( 267f86...7e858c )
by Naveen
09:07 queued 01:25
created
vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php 1 patch
Indentation   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -35,81 +35,81 @@  discard block
 block discarded – undo
35 35
      * @var array
36 36
      */
37 37
     protected $blacklistedMethodNames = array(
38
-      '__CLASS__'       => true,
39
-      '__DIR__'         => true,
40
-      '__FILE__'        => true,
41
-      '__FUNCTION__'    => true,
42
-      '__LINE__'        => true,
43
-      '__METHOD__'      => true,
44
-      '__NAMESPACE__'   => true,
45
-      '__TRAIT__'       => true,
46
-      '__clone'         => true,
47
-      '__halt_compiler' => true,
48
-      'abstract'        => true,
49
-      'and'             => true,
50
-      'array'           => true,
51
-      'as'              => true,
52
-      'break'           => true,
53
-      'callable'        => true,
54
-      'case'            => true,
55
-      'catch'           => true,
56
-      'class'           => true,
57
-      'clone'           => true,
58
-      'const'           => true,
59
-      'continue'        => true,
60
-      'declare'         => true,
61
-      'default'         => true,
62
-      'die'             => true,
63
-      'do'              => true,
64
-      'echo'            => true,
65
-      'else'            => true,
66
-      'elseif'          => true,
67
-      'empty'           => true,
68
-      'enddeclare'      => true,
69
-      'endfor'          => true,
70
-      'endforeach'      => true,
71
-      'endif'           => true,
72
-      'endswitch'       => true,
73
-      'endwhile'        => true,
74
-      'eval'            => true,
75
-      'exit'            => true,
76
-      'expects'         => true,
77
-      'extends'         => true,
78
-      'final'           => true,
79
-      'for'             => true,
80
-      'foreach'         => true,
81
-      'function'        => true,
82
-      'global'          => true,
83
-      'goto'            => true,
84
-      'if'              => true,
85
-      'implements'      => true,
86
-      'include'         => true,
87
-      'include_once'    => true,
88
-      'instanceof'      => true,
89
-      'insteadof'       => true,
90
-      'interface'       => true,
91
-      'isset'           => true,
92
-      'list'            => true,
93
-      'namespace'       => true,
94
-      'new'             => true,
95
-      'or'              => true,
96
-      'print'           => true,
97
-      'private'         => true,
98
-      'protected'       => true,
99
-      'public'          => true,
100
-      'require'         => true,
101
-      'require_once'    => true,
102
-      'return'          => true,
103
-      'static'          => true,
104
-      'switch'          => true,
105
-      'throw'           => true,
106
-      'trait'           => true,
107
-      'try'             => true,
108
-      'unset'           => true,
109
-      'use'             => true,
110
-      'var'             => true,
111
-      'while'           => true,
112
-      'xor'             => true
38
+        '__CLASS__'       => true,
39
+        '__DIR__'         => true,
40
+        '__FILE__'        => true,
41
+        '__FUNCTION__'    => true,
42
+        '__LINE__'        => true,
43
+        '__METHOD__'      => true,
44
+        '__NAMESPACE__'   => true,
45
+        '__TRAIT__'       => true,
46
+        '__clone'         => true,
47
+        '__halt_compiler' => true,
48
+        'abstract'        => true,
49
+        'and'             => true,
50
+        'array'           => true,
51
+        'as'              => true,
52
+        'break'           => true,
53
+        'callable'        => true,
54
+        'case'            => true,
55
+        'catch'           => true,
56
+        'class'           => true,
57
+        'clone'           => true,
58
+        'const'           => true,
59
+        'continue'        => true,
60
+        'declare'         => true,
61
+        'default'         => true,
62
+        'die'             => true,
63
+        'do'              => true,
64
+        'echo'            => true,
65
+        'else'            => true,
66
+        'elseif'          => true,
67
+        'empty'           => true,
68
+        'enddeclare'      => true,
69
+        'endfor'          => true,
70
+        'endforeach'      => true,
71
+        'endif'           => true,
72
+        'endswitch'       => true,
73
+        'endwhile'        => true,
74
+        'eval'            => true,
75
+        'exit'            => true,
76
+        'expects'         => true,
77
+        'extends'         => true,
78
+        'final'           => true,
79
+        'for'             => true,
80
+        'foreach'         => true,
81
+        'function'        => true,
82
+        'global'          => true,
83
+        'goto'            => true,
84
+        'if'              => true,
85
+        'implements'      => true,
86
+        'include'         => true,
87
+        'include_once'    => true,
88
+        'instanceof'      => true,
89
+        'insteadof'       => true,
90
+        'interface'       => true,
91
+        'isset'           => true,
92
+        'list'            => true,
93
+        'namespace'       => true,
94
+        'new'             => true,
95
+        'or'              => true,
96
+        'print'           => true,
97
+        'private'         => true,
98
+        'protected'       => true,
99
+        'public'          => true,
100
+        'require'         => true,
101
+        'require_once'    => true,
102
+        'return'          => true,
103
+        'static'          => true,
104
+        'switch'          => true,
105
+        'throw'           => true,
106
+        'trait'           => true,
107
+        'try'             => true,
108
+        'unset'           => true,
109
+        'use'             => true,
110
+        'var'             => true,
111
+        'while'           => true,
112
+        'xor'             => true
113 113
     );
114 114
 
115 115
     /**
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
         );
396 396
 
397 397
         $templateDir   = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' .
398
-                         DIRECTORY_SEPARATOR;
398
+                            DIRECTORY_SEPARATOR;
399 399
         $classTemplate = new Text_Template(
400 400
             $templateDir . 'trait_class.tpl'
401 401
         );
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         );
457 457
 
458 458
         $templateDir   = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' .
459
-                         DIRECTORY_SEPARATOR;
459
+                            DIRECTORY_SEPARATOR;
460 460
         $classTemplate = new Text_Template(
461 461
             $templateDir . 'trait_class.tpl'
462 462
         );
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
     protected function generateMock($type, $methods, $mockClassName, $callOriginalClone, $callAutoload, $cloneArguments, $callOriginalMethods)
625 625
     {
626 626
         $templateDir   = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' .
627
-                         DIRECTORY_SEPARATOR;
627
+                            DIRECTORY_SEPARATOR;
628 628
         $classTemplate = new Text_Template(
629 629
             $templateDir . 'mocked_class.tpl'
630 630
         );
@@ -807,8 +807,8 @@  discard block
 block discarded – undo
807 807
         );
808 808
 
809 809
         return array(
810
-          'code'          => $classTemplate->render(),
811
-          'mockClassName' => $mockClassName['className']
810
+            'code'          => $classTemplate->render(),
811
+            'mockClassName' => $mockClassName['className']
812 812
         );
813 813
     }
814 814
 
@@ -842,15 +842,15 @@  discard block
 block discarded – undo
842 842
         if ($className == '') {
843 843
             do {
844 844
                 $className = $prefix . $type . '_' .
845
-                             substr(md5(microtime()), 0, 8);
845
+                                substr(md5(microtime()), 0, 8);
846 846
             } while (class_exists($className, false));
847 847
         }
848 848
 
849 849
         return array(
850
-          'className'         => $className,
851
-          'originalClassName' => $type,
852
-          'fullClassName'     => $fullClassName,
853
-          'namespaceName'     => $namespaceName
850
+            'className'         => $className,
851
+            'originalClassName' => $type,
852
+            'fullClassName'     => $fullClassName,
853
+            'namespaceName'     => $namespaceName
854 854
         );
855 855
     }
856 856
 
Please login to merge, or discard this patch.
phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Static.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -21,25 +21,25 @@
 block discarded – undo
21 21
      * @var array
22 22
      */
23 23
     protected static $uncloneableExtensions = array(
24
-      'mysqli'    => true,
25
-      'SQLite'    => true,
26
-      'sqlite3'   => true,
27
-      'tidy'      => true,
28
-      'xmlwriter' => true,
29
-      'xsl'       => true
24
+        'mysqli'    => true,
25
+        'SQLite'    => true,
26
+        'sqlite3'   => true,
27
+        'tidy'      => true,
28
+        'xmlwriter' => true,
29
+        'xsl'       => true
30 30
     );
31 31
 
32 32
     /**
33 33
      * @var array
34 34
      */
35 35
     protected static $uncloneableClasses = array(
36
-      'Closure',
37
-      'COMPersistHelper',
38
-      'IteratorIterator',
39
-      'RecursiveIteratorIterator',
40
-      'SplFileObject',
41
-      'PDORow',
42
-      'ZipArchive'
36
+        'Closure',
37
+        'COMPersistHelper',
38
+        'IteratorIterator',
39
+        'RecursiveIteratorIterator',
40
+        'SplFileObject',
41
+        'PDORow',
42
+        'ZipArchive'
43 43
     );
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
 
108 108
         if ($this->afterMatchBuilderId !== null) {
109 109
             $builder = $invocation->object
110
-                                  ->__phpunit_getInvocationMocker()
111
-                                  ->lookupId($this->afterMatchBuilderId);
110
+                                    ->__phpunit_getInvocationMocker()
111
+                                    ->lookupId($this->afterMatchBuilderId);
112 112
 
113 113
             if (!$builder) {
114 114
                 throw new PHPUnit_Framework_Exception(
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
     {
161 161
         if ($this->afterMatchBuilderId !== null) {
162 162
             $builder = $invocation->object
163
-                                  ->__phpunit_getInvocationMocker()
164
-                                  ->lookupId($this->afterMatchBuilderId);
163
+                                    ->__phpunit_getInvocationMocker()
164
+                                    ->lookupId($this->afterMatchBuilderId);
165 165
 
166 166
             if (!$builder) {
167 167
                 throw new PHPUnit_Framework_Exception(
Please login to merge, or discard this patch.
src/Framework/MockObject/Matcher/ConsecutiveParameters.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         if (isset($this->_parameterGroups[$callIndex])) {
89 89
             $parameters = $this->_parameterGroups[$callIndex];
90 90
         } else {
91
-          // no parameter assertion for this call index
91
+            // no parameter assertion for this call index
92 92
             return;
93 93
         }
94 94
 
Please login to merge, or discard this patch.
phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnCallback.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             );
46 46
         } else {
47 47
             return 'return result of user defined callback ' . $this->callback .
48
-                   ' with the passed arguments';
48
+                    ' with the passed arguments';
49 49
         }
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@
 block discarded – undo
84 84
         $mock = $this->generator->getMockForAbstractClass('AbstractMockTestClass');
85 85
 
86 86
         $mock->expects($this->any())
87
-             ->method('doSomething')
88
-             ->willReturn('testing');
87
+                ->method('doSomething')
88
+                ->willReturn('testing');
89 89
 
90 90
         $this->assertEquals('testing', $mock->doSomething());
91 91
         $this->assertEquals(1, $mock->returnAnything());
Please login to merge, or discard this patch.
vendor/phpunit/phpunit-mock-objects/tests/MockBuilderTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,12 +96,12 @@
 block discarded – undo
96 96
     public function testProvidesAFluentInterface()
97 97
     {
98 98
         $spec = $this->getMockBuilder('Mockable')
99
-                     ->setMethods(array('mockableMethod'))
100
-                     ->setConstructorArgs(array())
101
-                     ->setMockClassName('DummyClassName')
102
-                     ->disableOriginalConstructor()
103
-                     ->disableOriginalClone()
104
-                     ->disableAutoload();
99
+                        ->setMethods(array('mockableMethod'))
100
+                        ->setConstructorArgs(array())
101
+                        ->setMockClassName('DummyClassName')
102
+                        ->disableOriginalConstructor()
103
+                        ->disableOriginalClone()
104
+                        ->disableAutoload();
105 105
         $this->assertTrue($spec instanceof PHPUnit_Framework_MockObject_MockBuilder);
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
phpunit/phpunit-mock-objects/tests/MockObject/Invocation/StaticTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function testAllowToGetMethodParametersSetInConstructor()
25 25
     {
26 26
         $expectedParameters = array(
27
-          'foo', 5, array('a', 'b'), new StdClass, null, false
27
+            'foo', 5, array('a', 'b'), new StdClass, null, false
28 28
         );
29 29
 
30 30
         $invocation = new PHPUnit_Framework_MockObject_Invocation_Static(
Please login to merge, or discard this patch.
vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php 1 patch
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $mock = $this->getMock('AnInterface');
21 21
         $mock->expects($this->never())
22
-             ->method('doSomething');
22
+                ->method('doSomething');
23 23
     }
24 24
 
25 25
     public function testMockedMethodIsNeverCalledWithParameter()
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $mock = $this->getMock('SomeClass');
36 36
         $mock->expects($this->any())
37
-             ->method('doSomethingElse')
38
-             ->with('someArg');
37
+                ->method('doSomethingElse')
38
+                ->with('someArg');
39 39
     }
40 40
 
41 41
     public function testMockedMethodIsNotCalledWhenMethodSpecifiedDirectlyWithParameter()
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $mock = $this->getMock('AnInterface');
51 51
         $mock->expects($this->atLeastOnce())
52
-             ->method('doSomething');
52
+                ->method('doSomething');
53 53
 
54 54
         $mock->doSomething();
55 55
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $mock = $this->getMock('AnInterface');
60 60
         $mock->expects($this->atLeastOnce())
61
-             ->method('doSomething');
61
+                ->method('doSomething');
62 62
 
63 63
         $mock->doSomething();
64 64
         $mock->doSomething();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $mock = $this->getMock('AnInterface');
70 70
         $mock->expects($this->atLeast(2))
71
-             ->method('doSomething');
71
+                ->method('doSomething');
72 72
 
73 73
         $mock->doSomething();
74 74
         $mock->doSomething();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $mock = $this->getMock('AnInterface');
80 80
         $mock->expects($this->atLeast(2))
81
-             ->method('doSomething');
81
+                ->method('doSomething');
82 82
 
83 83
         $mock->doSomething();
84 84
         $mock->doSomething();
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $mock = $this->getMock('AnInterface');
91 91
         $mock->expects($this->atMost(2))
92
-             ->method('doSomething');
92
+                ->method('doSomething');
93 93
 
94 94
         $mock->doSomething();
95 95
         $mock->doSomething();
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $mock = $this->getMock('AnInterface');
101 101
         $mock->expects($this->atMost(2))
102
-             ->method('doSomething');
102
+                ->method('doSomething');
103 103
 
104 104
         $mock->doSomething();
105 105
     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $mock = $this->getMock('AnInterface');
110 110
         $mock->expects($this->once())
111
-             ->method('doSomething');
111
+                ->method('doSomething');
112 112
 
113 113
         $mock->doSomething();
114 114
     }
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
     {
118 118
         $mock = $this->getMock('SomeClass');
119 119
         $mock->expects($this->once())
120
-             ->method('doSomethingElse')
121
-             ->with($this->equalTo('something'));
120
+                ->method('doSomethingElse')
121
+                ->with($this->equalTo('something'));
122 122
 
123 123
         $mock->doSomethingElse('something');
124 124
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     {
128 128
         $mock = $this->getMock('AnInterface');
129 129
         $mock->expects($this->exactly(2))
130
-             ->method('doSomething');
130
+                ->method('doSomething');
131 131
 
132 132
         $mock->doSomething();
133 133
         $mock->doSomething();
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $mock = $this->getMock('AnInterface');
139 139
         $mock->expects($this->any())
140
-             ->method('doSomething')
141
-             ->will($this->throwException(new Exception));
140
+                ->method('doSomething')
141
+                ->will($this->throwException(new Exception));
142 142
 
143 143
         try {
144 144
             $mock->doSomething();
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
     {
154 154
         $mock = $this->getMock('AnInterface');
155 155
         $mock->expects($this->any())
156
-             ->method('doSomething')
157
-             ->willThrowException(new Exception);
156
+                ->method('doSomething')
157
+                ->willThrowException(new Exception);
158 158
 
159 159
         try {
160 160
             $mock->doSomething();
@@ -169,15 +169,15 @@  discard block
 block discarded – undo
169 169
     {
170 170
         $mock = $this->getMock('AnInterface');
171 171
         $mock->expects($this->any())
172
-             ->method('doSomething')
173
-             ->will($this->returnValue('something'));
172
+                ->method('doSomething')
173
+                ->will($this->returnValue('something'));
174 174
 
175 175
         $this->assertEquals('something', $mock->doSomething());
176 176
 
177 177
         $mock = $this->getMock('AnInterface');
178 178
         $mock->expects($this->any())
179
-             ->method('doSomething')
180
-             ->willReturn('something');
179
+                ->method('doSomething')
180
+                ->willReturn('something');
181 181
 
182 182
         $this->assertEquals('something', $mock->doSomething());
183 183
     }
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
 
192 192
         $mock = $this->getMock('AnInterface');
193 193
         $mock->expects($this->any())
194
-             ->method('doSomething')
195
-             ->will($this->returnValueMap($map));
194
+                ->method('doSomething')
195
+                ->will($this->returnValueMap($map));
196 196
 
197 197
         $this->assertEquals('d', $mock->doSomething('a', 'b', 'c'));
198 198
         $this->assertEquals('h', $mock->doSomething('e', 'f', 'g'));
@@ -200,8 +200,8 @@  discard block
 block discarded – undo
200 200
 
201 201
         $mock = $this->getMock('AnInterface');
202 202
         $mock->expects($this->any())
203
-             ->method('doSomething')
204
-             ->willReturnMap($map);
203
+                ->method('doSomething')
204
+                ->willReturnMap($map);
205 205
 
206 206
         $this->assertEquals('d', $mock->doSomething('a', 'b', 'c'));
207 207
         $this->assertEquals('h', $mock->doSomething('e', 'f', 'g'));
@@ -212,15 +212,15 @@  discard block
 block discarded – undo
212 212
     {
213 213
         $mock = $this->getMock('AnInterface');
214 214
         $mock->expects($this->any())
215
-             ->method('doSomething')
216
-             ->will($this->returnArgument(1));
215
+                ->method('doSomething')
216
+                ->will($this->returnArgument(1));
217 217
 
218 218
         $this->assertEquals('b', $mock->doSomething('a', 'b'));
219 219
 
220 220
         $mock = $this->getMock('AnInterface');
221 221
         $mock->expects($this->any())
222
-             ->method('doSomething')
223
-             ->willReturnArgument(1);
222
+                ->method('doSomething')
223
+                ->willReturnArgument(1);
224 224
 
225 225
         $this->assertEquals('b', $mock->doSomething('a', 'b'));
226 226
     }
@@ -229,15 +229,15 @@  discard block
 block discarded – undo
229 229
     {
230 230
         $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', false);
231 231
         $mock->expects($this->once())
232
-             ->method('doSomething')
233
-             ->will($this->returnCallback('functionCallback'));
232
+                ->method('doSomething')
233
+                ->will($this->returnCallback('functionCallback'));
234 234
 
235 235
         $this->assertEquals('pass', $mock->doSomething('foo', 'bar'));
236 236
 
237 237
         $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', false);
238 238
         $mock->expects($this->once())
239
-             ->method('doSomething')
240
-             ->willReturnCallback('functionCallback');
239
+                ->method('doSomething')
240
+                ->willReturnCallback('functionCallback');
241 241
 
242 242
         $this->assertEquals('pass', $mock->doSomething('foo', 'bar'));
243 243
     }
@@ -246,15 +246,15 @@  discard block
 block discarded – undo
246 246
     {
247 247
         $mock = $this->getMock('AnInterface');
248 248
         $mock->expects($this->any())
249
-             ->method('doSomething')
250
-             ->will($this->returnSelf());
249
+                ->method('doSomething')
250
+                ->will($this->returnSelf());
251 251
 
252 252
         $this->assertEquals($mock, $mock->doSomething());
253 253
 
254 254
         $mock = $this->getMock('AnInterface');
255 255
         $mock->expects($this->any())
256
-             ->method('doSomething')
257
-             ->willReturnSelf();
256
+                ->method('doSomething')
257
+                ->willReturnSelf();
258 258
 
259 259
         $this->assertEquals($mock, $mock->doSomething());
260 260
     }
@@ -263,8 +263,8 @@  discard block
 block discarded – undo
263 263
     {
264 264
         $mock = $this->getMock('AnInterface');
265 265
         $mock->expects($this->any())
266
-             ->method('doSomething')
267
-             ->will($this->onConsecutiveCalls('a', 'b', 'c'));
266
+                ->method('doSomething')
267
+                ->will($this->onConsecutiveCalls('a', 'b', 'c'));
268 268
 
269 269
         $this->assertEquals('a', $mock->doSomething());
270 270
         $this->assertEquals('b', $mock->doSomething());
@@ -272,8 +272,8 @@  discard block
 block discarded – undo
272 272
 
273 273
         $mock = $this->getMock('AnInterface');
274 274
         $mock->expects($this->any())
275
-             ->method('doSomething')
276
-             ->willReturnOnConsecutiveCalls('a', 'b', 'c');
275
+                ->method('doSomething')
276
+                ->willReturnOnConsecutiveCalls('a', 'b', 'c');
277 277
 
278 278
         $this->assertEquals('a', $mock->doSomething());
279 279
         $this->assertEquals('b', $mock->doSomething());
@@ -284,8 +284,8 @@  discard block
 block discarded – undo
284 284
     {
285 285
         $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', false);
286 286
         $mock->expects($this->once())
287
-             ->method('doSomething')
288
-             ->will($this->returnCallback(array('MethodCallback', 'staticCallback')));
287
+                ->method('doSomething')
288
+                ->will($this->returnCallback(array('MethodCallback', 'staticCallback')));
289 289
 
290 290
         $this->assertEquals('pass', $mock->doSomething('foo', 'bar'));
291 291
     }
@@ -294,8 +294,8 @@  discard block
 block discarded – undo
294 294
     {
295 295
         $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', false);
296 296
         $mock->expects($this->once())
297
-             ->method('doSomething')
298
-             ->will($this->returnCallback(array(new MethodCallback, 'nonStaticCallback')));
297
+                ->method('doSomething')
298
+                ->will($this->returnCallback(array(new MethodCallback, 'nonStaticCallback')));
299 299
 
300 300
         $this->assertEquals('pass', $mock->doSomething('foo', 'bar'));
301 301
     }
@@ -376,18 +376,18 @@  discard block
 block discarded – undo
376 376
     {
377 377
         $mock = $this->getMock('AbstractMockTestClass');
378 378
         $mock->expects($this->never())
379
-             ->method('doSomething');
379
+                ->method('doSomething');
380 380
     }
381 381
 
382 382
     public function traversableProvider()
383 383
     {
384 384
         return array(
385
-          array('Traversable'),
386
-          array('\Traversable'),
387
-          array('TraversableMockTestInterface'),
388
-          array(array('Traversable')),
389
-          array(array('Iterator','Traversable')),
390
-          array(array('\Iterator','\Traversable'))
385
+            array('Traversable'),
386
+            array('\Traversable'),
387
+            array('TraversableMockTestInterface'),
388
+            array(array('Traversable')),
389
+            array(array('Iterator','Traversable')),
390
+            array(array('\Iterator','\Traversable'))
391 391
         );
392 392
     }
393 393
 
@@ -467,9 +467,9 @@  discard block
 block discarded – undo
467 467
         $expectedObject = new StdClass;
468 468
 
469 469
         $mock = $this->getMockBuilder('SomeClass')
470
-                     ->setMethods(array('doSomethingElse'))
471
-                     ->enableArgumentCloning()
472
-                     ->getMock();
470
+                        ->setMethods(array('doSomethingElse'))
471
+                        ->enableArgumentCloning()
472
+                        ->getMock();
473 473
 
474 474
         $actualArguments = array();
475 475
 
@@ -491,9 +491,9 @@  discard block
 block discarded – undo
491 491
         $expectedObject = new StdClass;
492 492
 
493 493
         $mock = $this->getMockBuilder('SomeClass')
494
-                     ->setMethods(array('doSomethingElse'))
495
-                     ->disableArgumentCloning()
496
-                     ->getMock();
494
+                        ->setMethods(array('doSomethingElse'))
495
+                        ->disableArgumentCloning()
496
+                        ->getMock();
497 497
 
498 498
         $actualArguments = array();
499 499
 
@@ -517,9 +517,9 @@  discard block
 block discarded – undo
517 517
                                 ->getMock();
518 518
 
519 519
         $mockWithoutCloning = $this->getMockBuilder('SomeClass')
520
-                                   ->setMethods(array('doSomethingElse'))
521
-                                   ->disableArgumentCloning()
522
-                                   ->getMock();
520
+                                    ->setMethods(array('doSomethingElse'))
521
+                                    ->disableArgumentCloning()
522
+                                    ->getMock();
523 523
 
524 524
         $this->assertNotEquals($mockWithCloning, $mockWithoutCloning);
525 525
     }
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
     {
529 529
         $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
530 530
         $mock->expects($this->once())
531
-             ->method('right');
531
+                ->method('right');
532 532
 
533 533
         $mock->wrong();
534 534
         try {
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
     {
550 550
         $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
551 551
         $mock->expects($this->once())
552
-             ->method('right');
552
+                ->method('right');
553 553
 
554 554
         $mock->wrong();
555 555
         try {
@@ -570,8 +570,8 @@  discard block
 block discarded – undo
570 570
     {
571 571
         $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
572 572
         $mock->expects($this->once())
573
-             ->method('right')
574
-             ->with(array('first', 'second'));
573
+                ->method('right')
574
+                ->with(array('first', 'second'));
575 575
 
576 576
         try {
577 577
             $mock->right(array('second'));
@@ -611,8 +611,8 @@  discard block
 block discarded – undo
611 611
     {
612 612
         $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
613 613
         $mock->expects($this->never())
614
-             ->method('right')
615
-             ->with();
614
+                ->method('right')
615
+                ->with();
616 616
 
617 617
         try {
618 618
             $mock->right();
@@ -631,8 +631,8 @@  discard block
 block discarded – undo
631 631
     {
632 632
         $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
633 633
         $mock->expects($this->never())
634
-             ->method('right')
635
-             ->withAnyParameters();
634
+                ->method('right')
635
+                ->withAnyParameters();
636 636
 
637 637
         try {
638 638
             $mock->right();
@@ -654,8 +654,8 @@  discard block
 block discarded – undo
654 654
     {
655 655
         $mock = $this->getMock('SomeClass', array('right'), array(), '', true, true, true);
656 656
         $mock->expects($this->once())
657
-             ->method('right')
658
-             ->with($this->anything());
657
+                ->method('right')
658
+                ->with($this->anything());
659 659
 
660 660
         try {
661 661
             $mock->right();
@@ -826,8 +826,8 @@  discard block
 block discarded – undo
826 826
         $this->assertInstanceOf(
827 827
             'ClassThatImplementsSerializable',
828 828
             $this->getMockBuilder('ClassThatImplementsSerializable')
829
-                 ->disableOriginalConstructor()
830
-                 ->getMock()
829
+                    ->disableOriginalConstructor()
830
+                    ->getMock()
831 831
         );
832 832
     }
833 833
 
Please login to merge, or discard this patch.