@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function testDetach() |
73 | 73 | { |
74 | - $callableListener = [new CallableListenerMock(),'doSomething']; |
|
74 | + $callableListener = [new CallableListenerMock(),'doSomething']; |
|
75 | 75 | |
76 | 76 | $events = $this |
77 | 77 | ->getMockBuilder(EventManager::class) |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | ->getMock(); |
81 | 81 | |
82 | 82 | $events |
83 | - ->expects($this->any()) |
|
84 | - ->method('attach') |
|
85 | - ->will( |
|
86 | - $this->onConsecutiveCalls($callableListener, $callableListener) |
|
87 | - ) |
|
83 | + ->expects($this->any()) |
|
84 | + ->method('attach') |
|
85 | + ->will( |
|
86 | + $this->onConsecutiveCalls($callableListener, $callableListener) |
|
87 | + ) |
|
88 | 88 | ; |
89 | 89 | |
90 | 90 | $events |
@@ -103,5 +103,5 @@ discard block |
||
103 | 103 | |
104 | 104 | class CallableListenerMock |
105 | 105 | { |
106 | - public function doSomething(){} |
|
106 | + public function doSomething(){} |
|
107 | 107 | } |
@@ -110,8 +110,8 @@ |
||
110 | 110 | $results->push($result1); |
111 | 111 | $this->ajaxEventManagerMock->expects($this->once())->method('getEvent')->with('test', $this->target)->willReturn(new AjaxEvent()); |
112 | 112 | $this->ajaxEventManagerMock->expects($this->once())->method('triggerEventUntil') |
113 | - ->with($this->isInstanceOf('\Closure'), $this->isInstanceOf(AjaxEvent::class)) |
|
114 | - ->willReturn($results); |
|
113 | + ->with($this->isInstanceOf('\Closure'), $this->isInstanceOf(AjaxEvent::class)) |
|
114 | + ->willReturn($results); |
|
115 | 115 | |
116 | 116 | $response = $this->target->onRoute($event); |
117 | 117 |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | { |
77 | 77 | $entry = 'value'; |
78 | 78 | $count = count($this->wrappedCollection); |
79 | - $this->identityWrapper->add($entry); |
|
79 | + $this->identityWrapper->add($entry); |
|
80 | 80 | $this->assertSame($count + 1, count($this->identityWrapper)); |
81 | 81 | $this->assertSame($count + 1, count($this->wrappedCollection)); |
82 | 82 | $this->assertTrue($this->identityWrapper->contains($entry)); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | public function testGetValues() |
182 | 182 | { |
183 | 183 | $expected = array_values($this->entries); |
184 | - $this->assertSame($expected, $this->identityWrapper->getValues()); |
|
184 | + $this->assertSame($expected, $this->identityWrapper->getValues()); |
|
185 | 185 | $this->assertSame($expected, $this->wrappedCollection->getValues()); |
186 | 186 | } |
187 | 187 | |
@@ -234,8 +234,8 @@ discard block |
||
234 | 234 | public function testFirst() |
235 | 235 | { |
236 | 236 | $expected = reset($this->entries); |
237 | - $this->assertSame($expected, $this->identityWrapper->first()); |
|
238 | - $this->assertSame($expected, $this->wrappedCollection->first()); |
|
237 | + $this->assertSame($expected, $this->identityWrapper->first()); |
|
238 | + $this->assertSame($expected, $this->wrappedCollection->first()); |
|
239 | 239 | } |
240 | 240 | |
241 | 241 | /** |
@@ -244,8 +244,8 @@ discard block |
||
244 | 244 | public function testLast() |
245 | 245 | { |
246 | 246 | $expected = end($this->entries); |
247 | - $this->assertSame($expected, $this->identityWrapper->last()); |
|
248 | - $this->assertSame($expected, $this->wrappedCollection->last()); |
|
247 | + $this->assertSame($expected, $this->identityWrapper->last()); |
|
248 | + $this->assertSame($expected, $this->wrappedCollection->last()); |
|
249 | 249 | } |
250 | 250 | |
251 | 251 | /** |
@@ -324,9 +324,9 @@ discard block |
||
324 | 324 | return $value === $searchValue; |
325 | 325 | }; |
326 | 326 | $filtered = $this->identityWrapper->filter($filter); |
327 | - $this->assertInstanceOf(IdentityWrapper::class, $filtered); |
|
328 | - $this->assertNotSame($this->identityWrapper, $filtered); |
|
329 | - $this->assertSame(array_filter($this->entries, $filter), $filtered->toArray()); |
|
327 | + $this->assertInstanceOf(IdentityWrapper::class, $filtered); |
|
328 | + $this->assertNotSame($this->identityWrapper, $filtered); |
|
329 | + $this->assertSame(array_filter($this->entries, $filter), $filtered->toArray()); |
|
330 | 330 | } |
331 | 331 | |
332 | 332 | /** |
@@ -119,9 +119,9 @@ |
||
119 | 119 | */ |
120 | 120 | abstract class BaseTestLatt |
121 | 121 | { |
122 | - public function testProp(){} |
|
122 | + public function testProp(){} |
|
123 | 123 | |
124 | - public function testProp2(){} |
|
124 | + public function testProp2(){} |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | class Latt_Simple extends BaseTestLatt |
@@ -25,9 +25,9 @@ |
||
25 | 25 | */ |
26 | 26 | class TriggerTest extends \PHPUnit_Framework_TestCase |
27 | 27 | { |
28 | - /** |
|
29 | - * @var TriggerTestEventManagerMock |
|
30 | - */ |
|
28 | + /** |
|
29 | + * @var TriggerTestEventManagerMock |
|
30 | + */ |
|
31 | 31 | protected $target; |
32 | 32 | |
33 | 33 | public function setUp() |
@@ -52,7 +52,7 @@ |
||
52 | 52 | //public function setServiceLocatorDeprecated(ContainerInterface $container, $count = 1) |
53 | 53 | //{ |
54 | 54 | // $this->setExpectedCallCount('getServiceLocator', $count); |
55 | - // |
|
55 | + // |
|
56 | 56 | // return parent::setServiceLocator($container); |
57 | 57 | //} |
58 | 58 |
@@ -21,12 +21,12 @@ |
||
21 | 21 | */ |
22 | 22 | class Config extends ZfConfig |
23 | 23 | { |
24 | - public function __construct( array $config = [] ) { |
|
25 | - parent::__construct( $config ); |
|
26 | - $this->config = array_merge($this->config,$config); |
|
27 | - } |
|
24 | + public function __construct( array $config = [] ) { |
|
25 | + parent::__construct( $config ); |
|
26 | + $this->config = array_merge($this->config,$config); |
|
27 | + } |
|
28 | 28 | |
29 | - public function configureServiceManager(ServiceManager $serviceManager) |
|
29 | + public function configureServiceManager(ServiceManager $serviceManager) |
|
30 | 30 | { |
31 | 31 | /* @var ServiceManagerMock $serviceManager */ |
32 | 32 | parent::configureServiceManager($serviceManager); |
@@ -53,27 +53,27 @@ discard block |
||
53 | 53 | $this->args = $args; |
54 | 54 | } |
55 | 55 | |
56 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
57 | - { |
|
58 | - if (empty($this->args)) { |
|
59 | - return new $this->class; |
|
60 | - } |
|
56 | + public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
57 | + { |
|
58 | + if (empty($this->args)) { |
|
59 | + return new $this->class; |
|
60 | + } |
|
61 | 61 | |
62 | - $reflection = new \ReflectionClass($this->class); |
|
63 | - $args = array_map( |
|
64 | - function ($arg) use ($container) { |
|
65 | - return is_string($arg) && 0 === strpos($arg, '@') ? $container->get(substr($arg, 1)) : $arg; |
|
66 | - }, |
|
67 | - $this->args |
|
68 | - ); |
|
62 | + $reflection = new \ReflectionClass($this->class); |
|
63 | + $args = array_map( |
|
64 | + function ($arg) use ($container) { |
|
65 | + return is_string($arg) && 0 === strpos($arg, '@') ? $container->get(substr($arg, 1)) : $arg; |
|
66 | + }, |
|
67 | + $this->args |
|
68 | + ); |
|
69 | 69 | |
70 | - $instance = $reflection->newInstanceArgs($args); |
|
70 | + $instance = $reflection->newInstanceArgs($args); |
|
71 | 71 | |
72 | - return $instance; |
|
73 | - } |
|
72 | + return $instance; |
|
73 | + } |
|
74 | 74 | |
75 | 75 | |
76 | - /** |
|
76 | + /** |
|
77 | 77 | * Creates a service instance. |
78 | 78 | * |
79 | 79 | * @param ServiceLocatorInterface $serviceLocator |
@@ -82,6 +82,6 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function createService(ServiceLocatorInterface $serviceLocator) |
84 | 84 | { |
85 | - return $this($serviceLocator,$this->class); |
|
85 | + return $this($serviceLocator,$this->class); |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | \ No newline at end of file |
@@ -47,8 +47,8 @@ |
||
47 | 47 | { |
48 | 48 | if (!is_array($traits)) { |
49 | 49 | throw \PHPUnit_Util_InvalidArgumentHelper::factory( |
50 | - 1, |
|
51 | - 'array or ArrayAccess' |
|
50 | + 1, |
|
51 | + 'array or ArrayAccess' |
|
52 | 52 | ); |
53 | 53 | } |
54 | 54 |