Passed
Push — master ( 4d91a4...70451a )
by Mathias
07:42
created
module/Core/test/CoreTest/Form/Service/InjectHeadscriptInitializerTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
         $this->formElementManagerMock->expects($this->never())->method('getServiceLocator');
84 84
         $instance = $this->getMockForAbstractClass('\Core\Form\HeadscriptProviderInterface');
85 85
         $instance->expects($this->exactly(2))
86
-                 ->method('getHeadscripts')
87
-                 ->will($this->onConsecutiveCalls('notanarray', array()));
86
+                    ->method('getHeadscripts')
87
+                    ->will($this->onConsecutiveCalls('notanarray', array()));
88 88
 
89 89
         $this->target->initialize($instance, $this->formElementManagerMock);
90 90
         $this->target->initialize($instance, $this->formElementManagerMock);
@@ -93,14 +93,14 @@  discard block
 block discarded – undo
93 93
     public function testInjectsScriptsToTheHeadscriptViewHelper()
94 94
     {
95 95
         $basepath = $this->getMockBuilder('\Zend\View\Helper\BasePath')
96
-                         ->disableOriginalConstructor()->getMock();
96
+                            ->disableOriginalConstructor()->getMock();
97 97
 
98 98
         $basepath->expects($this->any())
99
-                 ->method('__invoke')->will($this->returnArgument(0));
99
+                    ->method('__invoke')->will($this->returnArgument(0));
100 100
 
101 101
 
102 102
         $headscript = $this->getMockBuilder('\Zend\View\Helper\HeadScript')
103
-                           ->disableOriginalConstructor()->getMock();
103
+                            ->disableOriginalConstructor()->getMock();
104 104
 
105 105
         $scripts = array('test/script.js', 'yetanother/test/script.tst');
106 106
 
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
         $this->instanceMock = $instance;
110 110
 
111 111
         $headscript->expects($this->exactly(2))
112
-                   ->method('__call')->withConsecutive(
113
-                   array('appendFile', array($scripts[0])),
114
-                   array('appendFile', array($scripts[1]))
112
+                    ->method('__call')->withConsecutive(
113
+                    array('appendFile', array($scripts[0])),
114
+                    array('appendFile', array($scripts[1]))
115 115
             );
116 116
 
117 117
         $helpers = $this->getMockBuilder('\Zend\View\HelperPluginManager')
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
         $services = $this->formElementManagerMock;
127 127
 
128 128
         $services->expects($this->exactly(1))
129
-                 ->method('get')
130
-                 ->with('ViewHelperManager')
131
-                 ->willReturn($helpers)
129
+                    ->method('get')
130
+                    ->with('ViewHelperManager')
131
+                    ->willReturn($helpers)
132 132
         ;
133 133
 
134 134
         $this->target->initialize($instance, $services);
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/WizardContainerTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $labeldContainer->setLabel('testLabel');
43 43
         $topContainer = new Container();
44 44
         $topContainer->setForm('child', [ '__instance__' => $object ])
45
-                     ->setLabel('top');
45
+                        ->setLabel('top');
46 46
 
47 47
         return [
48 48
             /*[ 'Headscripts', [
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/CustomizableFieldsetTraitTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,9 +143,9 @@
 block discarded – undo
143 143
         $actual = $this->target->getInputFilterSpecification();
144 144
 
145 145
         $this->assertEquals(
146
-             ['test' => ['required' => true],
147
-              'test2' => ['filters' => []]]
148
-                 , $actual);
146
+                ['test' => ['required' => true],
147
+                'test2' => ['filters' => []]]
148
+                    , $actual);
149 149
     }
150 150
 
151 151
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Tree/AddItemFieldsetTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,19 +49,19 @@
 block discarded – undo
49 49
     {
50 50
         $mock = $this->getMockBuilder(AddItemFieldset::class)
51 51
             ->setMethods(['setObject', 'add'])
52
-             ->disableOriginalConstructor()->getMock();
52
+                ->disableOriginalConstructor()->getMock();
53 53
 
54 54
         $mock->expects($this->once())->method('setObject')->with($this->isInstanceOf(\ArrayObject::class));
55 55
 
56 56
         $mock->expects($this->exactly(6))->method('add')
57
-             ->withConsecutive(
57
+                ->withConsecutive(
58 58
                 [['name' => 'id', 'type' => 'Hidden']],
59 59
                 [['name' => 'current', 'type' => 'Hidden']],
60 60
                 [['name' => 'do', 'type' => 'Hidden']],
61 61
                 [['name' => 'name', 'type' => 'Text', 'options' => ['label' => 'Name'], 'attributes' => ['required' => 'required']]],
62 62
                 [['name' => 'value', 'type' => 'Text', 'options' => ['label' => 'Value']]],
63 63
                 [['name' => 'priority', 'type' => 'Text']]
64
-             );
64
+                );
65 65
 
66 66
         return $mock;
67 67
     }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/I18n/LocaleTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
     protected $localeService;
33 33
     
34 34
     /**
35
-	 * @see PHPUnit_Framework_TestCase::setUp()
36
-	 */
37
-	protected function setUp()
38
-	{
39
-		$this->localeService = new LocaleService($this->languages);
35
+     * @see PHPUnit_Framework_TestCase::setUp()
36
+     */
37
+    protected function setUp()
38
+    {
39
+        $this->localeService = new LocaleService($this->languages);
40 40
 		
41
-	}
41
+    }
42 42
 
43 43
     public function testGetDefaultLanguage()
44 44
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/View/Helper/SnippetTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 
98 98
     public function testReturnsEmptyString()
99 99
     {
100
-    	$event = $this->args['event'];
100
+        $event = $this->args['event'];
101 101
         $event->setName('nothingToDo');
102 102
         $event->setTarget($this->target);
103 103
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/View/Helper/ProxyTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,19 +60,19 @@  discard block
 block discarded – undo
60 60
 
61 61
     private function injectHelperManager($services = [])
62 62
     {
63
-    	$sm = $this->createServiceManagerMock();
63
+        $sm = $this->createServiceManagerMock();
64 64
         $manager = $this->createPluginManagerMock($services,$sm);
65 65
 
66 66
         $renderer = $this->getMockBuilder(PhpRenderer::class)
67
-			->disableOriginalConstructor()
67
+            ->disableOriginalConstructor()
68 68
             ->setMethods(['getHelperPluginManager'])
69 69
             ->getMock()
70 70
         ;
71 71
 
72 72
         $renderer
73
-	        ->expects($this->any())
74
-	        ->method('getHelperPluginManager')
75
-	        ->will($this->returnValue($manager))
73
+            ->expects($this->any())
74
+            ->method('getHelperPluginManager')
75
+            ->will($this->returnValue($manager))
76 76
         ;
77 77
 	    
78 78
         $this->target->setView($renderer);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         $options = ['option' => 'value'];
154 154
         $this->injectHelperManager(['helper' => PtHelperDummy::class]);
155 155
         $this->helperManager
156
-	        ->setExpectedCallCount('get', 'helper', $options, 1)
156
+            ->setExpectedCallCount('get', 'helper', $options, 1)
157 157
         ;
158 158
 
159 159
         $this->target->plugin('helper', $options);
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Listener/DeferredListenerAggregateTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function testAttachesAndDetachesToAndFromAnEventManager()
128 128
     {
129
-    	$testListener = new DLATListenerMock();
129
+        $testListener = new DLATListenerMock();
130 130
         $this->target->setListener('test01', 'service01');
131 131
         $this->target->setListener('test02', 'service02', 10);
132 132
 		
@@ -136,20 +136,20 @@  discard block
 block discarded – undo
136 136
             ->setMethods(['attach', 'detach'])
137 137
             ->getMock();
138 138
         $events->expects($this->exactly(2))
139
-			->method('attach')
139
+            ->method('attach')
140 140
             ->withConsecutive(
141
-            	[ $this->equalTo('test01'), $this->anything(), $this->equalTo(0) ],
142
-				[ $this->equalTo('test02'), $this->anything(), $this->equalTo(10) ]
141
+                [ $this->equalTo('test01'), $this->anything(), $this->equalTo(0) ],
142
+                [ $this->equalTo('test02'), $this->anything(), $this->equalTo(10) ]
143 143
             )
144 144
             ->will($this->onConsecutiveCalls(
145
-            	[$testListener,'callback'], [$testListener,'callback'])
145
+                [$testListener,'callback'], [$testListener,'callback'])
146 146
             );
147 147
 
148 148
         $events
149
-	        ->expects($this->exactly(2))
150
-	        ->method('detach')
149
+            ->expects($this->exactly(2))
150
+            ->method('detach')
151 151
             ->withConsecutive(
152
-            	[$callback], [$callback] )
152
+                [$callback], [$callback] )
153 153
             ->will($this->onConsecutiveCalls([true, false]))
154 154
         ;
155 155
 
Please login to merge, or discard this patch.
CoreTest/Listener/LanguageRouteListener/OnDispatchErrorCallbackTest.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -46,21 +46,21 @@  discard block
 block discarded – undo
46 46
     private $moduleOptions;
47 47
 
48 48
     public function testHandleConsoleRequests()
49
-   {
50
-       $event = $this
51
-           ->getMockBuilder(MvcEvent::class)
52
-           ->disableOriginalConstructor()
53
-           ->setMethods(['getRequest', 'getError'])
54
-           ->getMock()
55
-       ;
49
+    {
50
+        $event = $this
51
+            ->getMockBuilder(MvcEvent::class)
52
+            ->disableOriginalConstructor()
53
+            ->setMethods(['getRequest', 'getError'])
54
+            ->getMock()
55
+        ;
56 56
 
57
-       $request = new \Zend\Console\Request();
57
+        $request = new \Zend\Console\Request();
58 58
 
59
-       $event->expects($this->once())->method('getRequest')->willReturn($request);
60
-       $event->expects($this->never())->method('getError');
59
+        $event->expects($this->once())->method('getRequest')->willReturn($request);
60
+        $event->expects($this->never())->method('getError');
61 61
 
62
-       $this->assertNull($this->target->onDispatchError($event));
63
-   }
62
+        $this->assertNull($this->target->onDispatchError($event));
63
+    }
64 64
 
65 65
     public function testHandleNonRouteMatchErrors()
66 66
     {
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
         $event = $this->getEventMock('/base/uri', '/see/no/lang');
135 135
 
136 136
         $event->expects($this->once())
137
-              ->method('stopPropagation')
138
-              ->with(true)
137
+                ->method('stopPropagation')
138
+                ->with(true)
139 139
         ;
140 140
         $response = new Response();
141 141
         $event->setResponse($response);
@@ -148,18 +148,18 @@  discard block
 block discarded – undo
148 148
                     \PHPUnit_Framework_Assert::assertEquals('/base/uri/xx/see/no/lang', (string) $v->getUri());
149 149
                     return true;
150 150
                 }
151
-              ))
151
+                ))
152 152
             ->willReturn($routeMatch)
153 153
         ;
154 154
 
155 155
         $this->target
156
-	        ->expects($this->once())
157
-	        ->method('redirect')
158
-	        ->with($response, '/base/uri/xx/see/no/lang')
156
+            ->expects($this->once())
157
+            ->method('redirect')
158
+            ->with($response, '/base/uri/xx/see/no/lang')
159 159
         ;
160 160
         $this->target
161
-	        ->expects($this->never())
162
-	        ->method('setLocale')
161
+            ->expects($this->never())
162
+            ->method('setLocale')
163 163
         ;
164 164
 
165 165
         $this->target->onDispatchError($event);
Please login to merge, or discard this patch.