@@ -107,8 +107,8 @@ discard block |
||
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 |
||
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( |
@@ -88,7 +88,7 @@ |
||
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 |
@@ -45,7 +45,7 @@ |
||
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 | } |
@@ -84,8 +84,8 @@ |
||
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()); |
@@ -96,12 +96,12 @@ |
||
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 | } |
@@ -24,7 +24,7 @@ |
||
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( |
@@ -19,7 +19,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -386,8 +386,8 @@ discard block |
||
386 | 386 | array('\Traversable'), |
387 | 387 | array('TraversableMockTestInterface'), |
388 | 388 | array(array('Traversable')), |
389 | - array(array('Iterator','Traversable')), |
|
390 | - array(array('\Iterator','\Traversable')) |
|
389 | + array(array('Iterator', 'Traversable')), |
|
390 | + array(array('\Iterator', '\Traversable')) |
|
391 | 391 | ); |
392 | 392 | } |
393 | 393 | |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | |
476 | 476 | $mock->expects($this->any()) |
477 | 477 | ->method('doSomethingElse') |
478 | - ->will($this->returnCallback(function () use (&$actualArguments) { |
|
478 | + ->will($this->returnCallback(function() use (&$actualArguments) { |
|
479 | 479 | $actualArguments = func_get_args(); |
480 | 480 | })); |
481 | 481 | |
@@ -499,7 +499,7 @@ discard block |
||
499 | 499 | |
500 | 500 | $mock->expects($this->any()) |
501 | 501 | ->method('doSomethingElse') |
502 | - ->will($this->returnCallback(function () use (&$actualArguments) { |
|
502 | + ->will($this->returnCallback(function() use (&$actualArguments) { |
|
503 | 503 | $actualArguments = func_get_args(); |
504 | 504 | })); |
505 | 505 | |
@@ -707,7 +707,7 @@ discard block |
||
707 | 707 | $foo->expects($this->any()) |
708 | 708 | ->method('bar') |
709 | 709 | ->will($this->returnCallback( |
710 | - function (&$a, &$b, $c) { |
|
710 | + function(&$a, &$b, $c) { |
|
711 | 711 | $b = 1; |
712 | 712 | } |
713 | 713 | )); |
@@ -16,11 +16,11 @@ discard block |
||
16 | 16 | public function testMockedMethodIsProxiedToOriginalMethod() |
17 | 17 | { |
18 | 18 | $proxy = $this->getMockBuilder('Bar') |
19 | - ->enableProxyingToOriginalMethods() |
|
20 | - ->getMock(); |
|
19 | + ->enableProxyingToOriginalMethods() |
|
20 | + ->getMock(); |
|
21 | 21 | |
22 | 22 | $proxy->expects($this->once()) |
23 | - ->method('doSomethingElse'); |
|
23 | + ->method('doSomethingElse'); |
|
24 | 24 | |
25 | 25 | $foo = new Foo; |
26 | 26 | $this->assertEquals('result', $foo->doSomething($proxy)); |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | public function testMockedMethodWithReferenceIsProxiedToOriginalMethod() |
30 | 30 | { |
31 | 31 | $proxy = $this->getMockBuilder('MethodCallbackByReference') |
32 | - ->enableProxyingToOriginalMethods() |
|
33 | - ->getMock(); |
|
32 | + ->enableProxyingToOriginalMethods() |
|
33 | + ->getMock(); |
|
34 | 34 | $a = $b = $c = 0; |
35 | 35 | |
36 | 36 | $proxy->callback($a, $b, $c); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | public function toString() |
68 | 68 | { |
69 | 69 | return 'attribute "' . $this->attributeName . '" ' . |
70 | - $this->innerConstraint->toString(); |
|
70 | + $this->innerConstraint->toString(); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |