Passed
Push — develop ( 24b5e4...fa8d1c )
by Carsten
07:00
created
module/Core/test/CoreTest/Controller/Plugin/MailTest.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -90,20 +90,20 @@  discard block
 block discarded – undo
90 90
         $this->viewResolver->expects($this->any())
91 91
             ->method('resolve')
92 92
             ->willReturnMap([
93
-                ['mail/null-template',null,null],
94
-                ['coretest/mail/null-template',null,__DIR__.'/fixtures/mail-template.phtml'],
95
-                ['mail/template',null,__DIR__.'/fixtures/mail-template.phtml'],
96
-                ['mail/exception',null,__DIR__.'/fixtures/error.phtml']
93
+                ['mail/null-template', null, null],
94
+                ['coretest/mail/null-template', null, __DIR__.'/fixtures/mail-template.phtml'],
95
+                ['mail/template', null, __DIR__.'/fixtures/mail-template.phtml'],
96
+                ['mail/exception', null, __DIR__.'/fixtures/error.phtml']
97 97
             ])
98 98
         ;
99 99
 
100 100
         $container->expects($this->any())
101 101
             ->method('get')
102 102
             ->willReturnMap([
103
-                ['Log/Core/Mail',$this->mailLog],
104
-                ['ViewResolver',$this->viewResolver],
105
-                ['EventManager',$this->events],
106
-                ['ModuleManager',$this->moduleManager]
103
+                ['Log/Core/Mail', $this->mailLog],
104
+                ['ViewResolver', $this->viewResolver],
105
+                ['EventManager', $this->events],
106
+                ['ModuleManager', $this->moduleManager]
107 107
             ])
108 108
         ;
109 109
 
@@ -131,15 +131,15 @@  discard block
 block discarded – undo
131 131
     public function testTemplate()
132 132
     {
133 133
         $target = $this->target;
134
-        $params = ['Hello' => 'World','this'=>'this should not rendered'];
134
+        $params = ['Hello' => 'World', 'this'=>'this should not rendered'];
135 135
 
136 136
         $target($params);
137 137
         $target->template('null-template');
138 138
 
139
-        $this->assertInstanceOf(Sendmail::class,$target->getTransport());
140
-        $this->assertSame($this->controller,$target->getController());
141
-        $this->assertContains('Hello World!',$target->getBody());
142
-        $this->assertNotContains($params['this'],$target->getBody());
139
+        $this->assertInstanceOf(Sendmail::class, $target->getTransport());
140
+        $this->assertSame($this->controller, $target->getController());
141
+        $this->assertContains('Hello World!', $target->getBody());
142
+        $this->assertNotContains($params['this'], $target->getBody());
143 143
     }
144 144
 
145 145
     public function testTemplateThrowExceptionWhenTemplateFileError()
@@ -175,24 +175,24 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * @dataProvider getTestInformationCompleteException
177 177
      */
178
-    public function testInformationCompleteException($remove,$message)
178
+    public function testInformationCompleteException($remove, $message)
179 179
     {
180 180
         $srcFile = __DIR__.'/fixtures/mail-template.phtml';
181 181
         $tplFile = sys_get_temp_dir().'/yawik/mail-template.phtml';
182 182
 
183 183
         $contents = file_get_contents($srcFile);
184 184
         $pattern = "/^.*".preg_quote($remove).".*$/m";
185
-        $contents = preg_replace($pattern,'',$contents);
186
-        if(!is_dir($dir = dirname($tplFile))){
187
-            mkdir($dir,0777,true);
185
+        $contents = preg_replace($pattern, '', $contents);
186
+        if (!is_dir($dir = dirname($tplFile))) {
187
+            mkdir($dir, 0777, true);
188 188
         }
189
-        file_put_contents($tplFile,$contents,LOCK_EX);
189
+        file_put_contents($tplFile, $contents, LOCK_EX);
190 190
 
191 191
         $resolver = $this->createMock(ResolverInterface::class);
192 192
         $resolver->expects($this->any())
193 193
             ->method('resolve')
194 194
             ->willReturnMap([
195
-                ['mail/exception',null,$tplFile]
195
+                ['mail/exception', null, $tplFile]
196 196
             ])
197 197
         ;
198 198
 
@@ -220,9 +220,9 @@  discard block
 block discarded – undo
220 220
     public function getTestInformationCompleteException()
221 221
     {
222 222
         return [
223
-            ['$from','A from email address'],
224
-            ['$fromName','A from name'],
225
-            ['$subject','A subject must be'],
223
+            ['$from', 'A from email address'],
224
+            ['$fromName', 'A from name'],
225
+            ['$subject', 'A subject must be'],
226 226
         ];
227 227
     }
228 228
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
             'Hello' => 'World'
246 246
         ]);
247 247
         $target->setTransport($transport);
248
-        $target->getHeaders()->addHeaderLine('to','[email protected]');
248
+        $target->getHeaders()->addHeaderLine('to', '[email protected]');
249 249
         $target->template('template');
250 250
         $this->assertTrue($target->send());
251 251
         $this->assertContains(
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/ContentCollectorTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
         $viewModel = new ViewModel();
46 46
         $events->expects($this->any())
47 47
             ->method('trigger')
48
-            ->with($event,'some_target')
48
+            ->with($event, 'some_target')
49 49
             ->willReturn([
50
-                'test_template',$viewModel
50
+                'test_template', $viewModel
51 51
             ])
52 52
         ;
53 53
 
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
         $target->captureTo('some_path');
59 59
 
60 60
         /* @var \Zend\View\Model\ViewModel[] $childs */
61
-        $output = $target->trigger($event,'some_target');
61
+        $output = $target->trigger($event, 'some_target');
62 62
         $childs = $output->getChildren();
63
-        $this->assertInstanceOf(ViewModel::class,$output);
63
+        $this->assertInstanceOf(ViewModel::class, $output);
64 64
         $this->assertEquals(
65 65
             'test_template',
66 66
             $childs[0]->getTemplate()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/ConfigFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@
 block discarded – undo
30 30
             ->willReturn([])
31 31
         ;
32 32
         $factory = new ConfigFactory();
33
-        $service = $factory($container,'some');
33
+        $service = $factory($container, 'some');
34 34
 
35
-        $this->assertInstanceOf(Config::class,$service);
35
+        $this->assertInstanceOf(Config::class, $service);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/ListQueryTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $container = $this->createMock(ContainerInterface::class);
43 43
         $ob = ListQuery::factory($container);
44
-        $this->assertInstanceOf(ListQuery::class,$ob);
44
+        $this->assertInstanceOf(ListQuery::class, $ob);
45 45
     }
46 46
 
47 47
     public function propertiesProvider()
@@ -49,23 +49,23 @@  discard block
 block discarded – undo
49 49
         return [
50 50
             [
51 51
                 'pageParamName',
52
-                ['value' => 'somePage','setter_value'=>null,'default'=>'page']
52
+                ['value' => 'somePage', 'setter_value'=>null, 'default'=>'page']
53 53
             ],
54 54
             [
55
-                'propertiesMap' ,
56
-                ['value'=>'bar','setter_value'=>null,'default'=>array()]
55
+                'propertiesMap',
56
+                ['value'=>'bar', 'setter_value'=>null, 'default'=>array()]
57 57
             ],
58 58
             [
59 59
                 'itemsPerPage',
60
-                ['value' => 10,'setter_value'=>null,'default' => 25]
60
+                ['value' => 10, 'setter_value'=>null, 'default' => 25]
61 61
             ],
62 62
             [
63 63
                 'queryKeysLowercased',
64
-                ['value' => false,'setter_value'=>null,'default' => true]
64
+                ['value' => false, 'setter_value'=>null, 'default' => true]
65 65
             ],
66 66
             [
67 67
                 'sortParamName',
68
-                ['value' => 's','setter_value'=>null,'default' => 'sort']
68
+                ['value' => 's', 'setter_value'=>null, 'default' => 'sort']
69 69
             ],
70 70
         ];
71 71
     }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/ConfigTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $config = include __DIR__.'/fixtures/config-dump.php';
59 59
         $moduleManager = $this->createMock(ModuleManagerInterface::class);
60
-        return new IndexController($moduleManager,$config);
60
+        return new IndexController($moduleManager, $config);
61 61
     }
62 62
 
63 63
     /**
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
      * @param string $module
66 66
      * @dataProvider getTestInvoke
67 67
      */
68
-    public function testInvoke($config,$key=null,$module=null,$expected)
68
+    public function testInvoke($config, $key = null, $module = null, $expected)
69 69
     {
70 70
         $plugin = new Config($config);
71 71
         $plugin->setController($this->getController());
72
-        $value = $plugin($key,$module);
72
+        $value = $plugin($key, $module);
73 73
         $this
74
-            ->assertEquals($expected,$value)
74
+            ->assertEquals($expected, $value)
75 75
         ;
76 76
     }
77 77
 
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
         ];
88 88
 
89 89
         return [
90
-            [   $config, 'dashboard', 'Jobs', $config['Jobs']['dashboard']  ],
91
-            [   $config, 'dashboard', ['Jobs','Applications'], $combinedOutput  ],
92
-            [   $config, 'settings', null, $config['Core']['settings']  ],
93
-            [   $config, 'Core', true, $config['Core']  ],
94
-            [   $config, ['dashboard','form'],['Jobs','Application'], ['Jobs' =>$config['Jobs']]    ],
90
+            [$config, 'dashboard', 'Jobs', $config['Jobs']['dashboard']],
91
+            [$config, 'dashboard', ['Jobs', 'Applications'], $combinedOutput],
92
+            [$config, 'settings', null, $config['Core']['settings']],
93
+            [$config, 'Core', true, $config['Core']],
94
+            [$config, ['dashboard', 'form'], ['Jobs', 'Application'], ['Jobs' =>$config['Jobs']]],
95 95
         ];
96 96
     }
97 97
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $plugin->setController($this->getController());
103 103
 
104 104
         $this
105
-            ->assertEquals($config['Core']['settings'],$plugin->settings)
105
+            ->assertEquals($config['Core']['settings'], $plugin->settings)
106 106
         ;
107 107
     }
108 108
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/SearchFormTest.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
  */
32 32
 class SearchFormTest extends \PHPUnit_Framework_TestCase
33 33
 {
34
-	use TestInheritanceTrait;
34
+    use TestInheritanceTrait;
35 35
 	
36 36
     protected $formElementManagerMock;
37 37
 
@@ -127,14 +127,14 @@  discard block
 block discarded – undo
127 127
 
128 128
         $formData = ['data' => 'value'];
129 129
         $hydrator = $this->getMockBuilder(HydratorInterface::class)
130
-                         ->setMethods(['hydrate', 'extract'])
131
-                         ->getMockForAbstractClass();
130
+                            ->setMethods(['hydrate', 'extract'])
131
+                            ->getMockForAbstractClass();
132 132
         $hydrator->expects($this->once())->method('extract')->with($this->isInstanceOf(Parameters::class))->willReturn($formData);
133 133
         $hydrator->expects($this->once())->method('hydrate')->with($formData, $this->isInstanceOf(Parameters::class));
134 134
 
135 135
         $form = $this->getMockBuilder(Form::class)
136
-                     ->setMethods(['getHydrator', 'setData'])
137
-                     ->getMock();
136
+                        ->setMethods(['getHydrator', 'setData'])
137
+                        ->getMock();
138 138
         $form->expects($this->once())->method('gethydrator')->willReturn($hydrator);
139 139
         $form->expects($this->once())->method('setData')->with($formData);
140 140
         $this->formElementManagerMock
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         'class' => '\Core\Controller\Plugin\SearchForm',
40 40
         'args' => 'getTargetArgs',
41 41
         '@testInvokationProxiesToGet' => [
42
-            'mock' => [ 'get' ],
42
+            'mock' => ['get'],
43 43
             'args' => false,
44 44
         ],
45 45
         '@testInheritance' => [
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         ],
48 48
     ];
49 49
 
50
-    protected $inheritance = [ AbstractPlugin::class ];
50
+    protected $inheritance = [AbstractPlugin::class];
51 51
 
52 52
     protected function getTargetArgs()
53 53
     {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function testInvokationProxiesToGet()
64 64
     {
65 65
         $form = 'TestForm';
66
-        $options  = ['test' => 'test'];
66
+        $options = ['test' => 'test'];
67 67
 
68 68
         $this->target->expects($this->once())->method('get')->with($form, $options);
69 69
 
Please login to merge, or discard this patch.
Core/test/CoreTest/Controller/Plugin/PaginationBuilder/GetResultTest.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
         $this->pluginMock = $pluginMock;
46 46
 
47 47
         $controller = $this->getMockBuilder('\Zend\Mvc\Controller\AbstractController')
48
-                           ->setMethods(['getRequest', 'plugin'])
49
-                           ->getMockForAbstractClass();
48
+                            ->setMethods(['getRequest', 'plugin'])
49
+                            ->getMockForAbstractClass();
50 50
 
51 51
         $controller->expects($this->any())->method('getRequest')->willReturn($this->request);
52 52
         $controller->expects($this->any())->method('plugin')->will($this->returnValueMap(
53
-                                                                       [
54
-                                                                           ['paginator', null, $pluginMock],
55
-                                                                           ['paginationParams', null, $pluginMock],
56
-                                                                           ['searchform', null, $pluginMock],
57
-                                                                       ]
58
-                                                                   ));
53
+                                                                        [
54
+                                                                            ['paginator', null, $pluginMock],
55
+                                                                            ['paginationParams', null, $pluginMock],
56
+                                                                            ['searchform', null, $pluginMock],
57
+                                                                        ]
58
+                                                                    ));
59 59
 
60 60
         $this->target->setController($controller);
61 61
 
@@ -117,12 +117,12 @@  discard block
 block discarded – undo
117 117
         $actual = $query->toArray();
118 118
 
119 119
         $this->assertAttributeEquals(
120
-             new Parameters([
121
-                 'a' => 'test', 'b' => ['test1', 'test2'],
122
-                 'c' => ['test1', 'test2'],
123
-                 'd' => ['test1' => 1, 'test2' => 1]
124
-             ]),
125
-             'parameters', $this->target);
120
+                new Parameters([
121
+                    'a' => 'test', 'b' => ['test1', 'test2'],
122
+                    'c' => ['test1', 'test2'],
123
+                    'd' => ['test1' => 1, 'test2' => 1]
124
+                ]),
125
+                'parameters', $this->target);
126 126
     }
127 127
 }
128 128
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/PaginationBuilder/BaseTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         ],
46 46
     ];
47 47
 
48
-    protected $inheritance = [ '\Zend\Mvc\Controller\Plugin\AbstractPlugin' ];
48
+    protected $inheritance = ['\Zend\Mvc\Controller\Plugin\AbstractPlugin'];
49 49
 
50 50
     public function testInvokationWithoutArgumentsReturnsSelf()
51 51
     {
@@ -91,16 +91,16 @@  discard block
 block discarded – undo
91 91
     public function argumentsStackProvider()
92 92
     {
93 93
         return [
94
-            [ 'paginator', ['paginator'], ['as' => 'paginator', 'paginator', []] ],
95
-            [ 'paginator', ['name', 'alias'], ['as' => 'alias', 'name', []] ],
96
-            [ 'paginator', ['name', ['param' => 'value'], 'alias'], ['as' => 'alias', 'name', ['param' => 'value']] ],
97
-            [ 'paginator', ['name', []], ['as' => 'paginator', 'name', []]],
98
-            [ 'form', ['formName'], ['as' => 'searchform', 'formName', null]],
99
-            [ 'form', ['formName', ['testOpt' => 'testVal']], ['as' => 'searchform', 'formName', ['testOpt' => 'testVal']]],
100
-            [ 'form', ['formName', null, 'alias'], ['as' => 'alias', 'formName', null]],
101
-            [ 'form', ['formName', 'alias'], ['as' => 'alias', 'formName', null]],
102
-            [ 'params', ['namespace'], ['namespace', ['page' => 1]]],
103
-            [ 'params', ['namespace', ['param' => 'value']], ['namespace', ['param' => 'value']]],
94
+            ['paginator', ['paginator'], ['as' => 'paginator', 'paginator', []]],
95
+            ['paginator', ['name', 'alias'], ['as' => 'alias', 'name', []]],
96
+            ['paginator', ['name', ['param' => 'value'], 'alias'], ['as' => 'alias', 'name', ['param' => 'value']]],
97
+            ['paginator', ['name', []], ['as' => 'paginator', 'name', []]],
98
+            ['form', ['formName'], ['as' => 'searchform', 'formName', null]],
99
+            ['form', ['formName', ['testOpt' => 'testVal']], ['as' => 'searchform', 'formName', ['testOpt' => 'testVal']]],
100
+            ['form', ['formName', null, 'alias'], ['as' => 'alias', 'formName', null]],
101
+            ['form', ['formName', 'alias'], ['as' => 'alias', 'formName', null]],
102
+            ['params', ['namespace'], ['namespace', ['page' => 1]]],
103
+            ['params', ['namespace', ['param' => 'value']], ['namespace', ['param' => 'value']]],
104 104
         ];
105 105
     }
106 106
 
@@ -124,14 +124,14 @@  discard block
 block discarded – undo
124 124
     {
125 125
         $this->target->expects($this->exactly(2))->method('paginator')
126 126
             ->withConsecutive(
127
-                [ 'Name' ],
128
-                [ 'Name', 'Alias']
127
+                ['Name'],
128
+                ['Name', 'Alias']
129 129
             )->willReturn($this->returnSelf());
130 130
 
131 131
         $this->target->expects($this->exactly(2))->method('form')
132 132
             ->withConsecutive(
133
-                [ 'Name' ],
134
-                [ 'Name', 'Alias']
133
+                ['Name'],
134
+                ['Name', 'Alias']
135 135
             )->willReturn($this->returnSelf());
136 136
 
137 137
         $stack = [
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/Plugin/PaginationParamsTest.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $mock = $this->getMockBuilder(PaginationParams::class)
62 62
             ->disableOriginalConstructor()
63
-            ->setMethods(['getParams','getList'])
63
+            ->setMethods(['getParams', 'getList'])
64 64
             ->getMock()
65 65
         ;
66 66
         $repository = $this->createMock(RepositoryInterface::class);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         // setup getParams call
69 69
         $mock->expects($this->once())
70 70
             ->method('getParams')
71
-            ->with('some/namespace',['page'=>1],null)
71
+            ->with('some/namespace', ['page'=>1], null)
72 72
             ->willReturn('getParams called')
73 73
         ;
74 74
 
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
         $mock->expects($this->exactly(2))
77 77
             ->method('getList')
78 78
             ->withConsecutive(
79
-                ['some/namespace',[$this,'methodToTest']],
80
-                ['some/namespace',$repository]
79
+                ['some/namespace', [$this, 'methodToTest']],
80
+                ['some/namespace', $repository]
81 81
             )
82 82
             ->willReturn('getList called')
83 83
         ;
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
         );
96 96
         $this->assertEquals(
97 97
             'getList called',
98
-            $mock('some/namespace',[$this,'methodToTest']),
98
+            $mock('some/namespace', [$this, 'methodToTest']),
99 99
             '__invoke() should call ::getList when defaults is callable'
100 100
         );
101 101
         $this->assertEquals(
102 102
             'getList called',
103
-            $mock('some/namespace',$repository),
103
+            $mock('some/namespace', $repository),
104 104
             '__invoke() should call ::getList when $defaults is a Repository'
105 105
         );
106 106
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $mock = new PaginationParams();
116 116
         $params = ['key' => 'value'];
117
-        $mock->setParams('namespace',['key'=>'value']);
117
+        $mock->setParams('namespace', ['key'=>'value']);
118 118
         $container = new Container('namespace');
119 119
         $this->assertEquals(
120 120
             $params,
@@ -132,11 +132,11 @@  discard block
 block discarded – undo
132 132
             ->method('getQuery')
133 133
             ->willReturn($params)
134 134
         ;
135
-        $params->set('clear',true);
136
-        $output = $mock->getParams('namespace',[]);
135
+        $params->set('clear', true);
136
+        $output = $mock->getParams('namespace', []);
137 137
         $this->assertNull($output->get('clear'));
138 138
         // unset clear value to be used for next test
139
-        $params->set('clear',false);
139
+        $params->set('clear', false);
140 140
 
141 141
 
142 142
         $session = new Container('namespace');
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
             1 => 'session',
149 149
             2 => 'undefined'
150 150
         ];
151
-        $params->set('existing','existing value');
152
-        $output = $mock->getParams('namespace',$defaults,$params);
151
+        $params->set('existing', 'existing value');
152
+        $output = $mock->getParams('namespace', $defaults, $params);
153 153
         $this->assertEquals(
154 154
             'value',
155 155
             $output->get('key'),
@@ -177,8 +177,8 @@  discard block
 block discarded – undo
177 177
         $session->list = null;
178 178
         $mock = $this->target;
179 179
 
180
-        $callback = [$this,'methodToTest'];
181
-        $output = $mock->getList('namespace',$callback);
180
+        $callback = [$this, 'methodToTest'];
181
+        $output = $mock->getList('namespace', $callback);
182 182
         $this->assertEquals(
183 183
             'methodToTest called',
184 184
             $output,
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         $session->list = 'some value';
189 189
         $this->assertEquals(
190 190
             'some value',
191
-            $mock->getList('namespace',$callback)
191
+            $mock->getList('namespace', $callback)
192 192
         );
193 193
     }
194 194
 
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
         $mock->expects($this->once())
205 205
             ->method('getList')
206
-            ->with('namespace','callback')
206
+            ->with('namespace', 'callback')
207 207
             ->willReturn($list)
208 208
         ;
209 209
 
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
             ->willReturn('next')
221 221
         ;
222 222
         $this->assertEquals(
223
-            ['previous','next'],
224
-            $mock->getNeighbours('namespace','callback','id')
223
+            ['previous', 'next'],
224
+            $mock->getNeighbours('namespace', 'callback', 'id')
225 225
         );
226 226
     }
227 227
 }
Please login to merge, or discard this patch.