Passed
Push — master ( 793370...b09d10 )
by Carsten
12:59
created
module/Core/test/CoreTest/Form/CollectionContainerTest.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $this->collectionContainer->setEntity($collection);
100 100
         $iterator = $this->collectionContainer->getIterator();
101
-		$this->assertInstanceOf(\Iterator::class, $iterator);
102
-		$this->assertSame(count($collection), count($iterator));
101
+        $this->assertInstanceOf(\Iterator::class, $iterator);
102
+        $this->assertSame(count($collection), count($iterator));
103 103
     }
104 104
     
105 105
     /**
@@ -149,10 +149,10 @@  discard block
 block discarded – undo
149 149
         $this->collectionContainer->setEntity($collection);
150 150
         $entry = $collection->first();
151 151
         $key = $collection->indexOf($entry);
152
-		$form = $this->collectionContainer->getForm($key);
153
-		$this->assertInstanceOf(CoreForm::class, $form);
154
-		$this->assertSame($entry, $form->getObject());
155
-		$this->assertContains($key, $form->getAttribute('action'));
152
+        $form = $this->collectionContainer->getForm($key);
153
+        $this->assertInstanceOf(CoreForm::class, $form);
154
+        $this->assertSame($entry, $form->getObject());
155
+        $this->assertContains($key, $form->getAttribute('action'));
156 156
     }
157 157
     
158 158
     /**
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
     {
163 163
         $this->collectionContainer->setEntity($collection);
164 164
         $form = $this->collectionContainer->getForm(CollectionContainer::NEW_ENTRY);
165
-		$this->assertInstanceOf(CoreForm::class, $form);
166
-		$this->assertSame($this->newEntry, $form->getObject());
167
-		$this->assertContains(CollectionContainer::NEW_ENTRY, $form->getAttribute('action'));
165
+        $this->assertInstanceOf(CoreForm::class, $form);
166
+        $this->assertSame($this->newEntry, $form->getObject());
167
+        $this->assertContains(CollectionContainer::NEW_ENTRY, $form->getAttribute('action'));
168 168
     }
169 169
     
170 170
     /**
@@ -185,9 +185,9 @@  discard block
 block discarded – undo
185 185
         $entry = $collection->first();
186 186
         $count = count($collection);
187 187
         $result = $this->collectionContainer->executeAction('remove', ['key' => $collection->indexOf($entry)]);
188
-		$this->assertArrayHasKey('success', $result);
189
-		$this->assertTrue($result['success']);
190
-		$this->assertSame($count - 1, count($collection));
188
+        $this->assertArrayHasKey('success', $result);
189
+        $this->assertTrue($result['success']);
190
+        $this->assertSame($count - 1, count($collection));
191 191
     }
192 192
     
193 193
     /**
@@ -198,23 +198,23 @@  discard block
 block discarded – undo
198 198
         $this->collectionContainer->setEntity($collection);
199 199
         $count = count($collection);
200 200
         $result = $this->collectionContainer->executeAction('remove', ['key' => 'non-existent']);
201
-		$this->assertArrayHasKey('success', $result);
202
-		$this->assertFalse($result['success']);
203
-		$this->assertSame($count, count($collection));
201
+        $this->assertArrayHasKey('success', $result);
202
+        $this->assertFalse($result['success']);
203
+        $this->assertSame($count, count($collection));
204 204
     }
205 205
     
206 206
     public function testGetViewHelper()
207 207
     {
208
-		$result = $this->collectionContainer->getViewHelper();
209
-		$this->assertTrue(is_string($result));
210
-		$this->assertNotEmpty($result);
208
+        $result = $this->collectionContainer->getViewHelper();
209
+        $this->assertTrue(is_string($result));
210
+        $this->assertNotEmpty($result);
211 211
     }
212 212
     
213 213
     public function testSetViewHelper()
214 214
     {
215 215
         $expected = 'viewHelper';
216
-		$this->assertSame($this->collectionContainer, $this->collectionContainer->setViewHelper($expected));
217
-		$this->assertSame($expected, $this->collectionContainer->getViewHelper());
216
+        $this->assertSame($this->collectionContainer, $this->collectionContainer->setViewHelper($expected));
217
+        $this->assertSame($expected, $this->collectionContainer->getViewHelper());
218 218
     }
219 219
     
220 220
     /**
Please login to merge, or discard this patch.
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.