Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
module/Auth/test/AuthTest/View/Helper/AuthTest.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
44 44
     public function testProxiesMethodToAuthenticationService()
45 45
     {
46 46
         $auth = $this->getMockBuilder('\Auth\AuthenticationService')
47
-                     ->disableOriginalConstructor()
48
-                     ->getMock();
47
+                        ->disableOriginalConstructor()
48
+                        ->getMock();
49 49
 
50 50
         $auth->expects($this->once())
51
-             ->method('getUser')
52
-             ->willReturn(true);
51
+                ->method('getUser')
52
+                ->willReturn(true);
53 53
 
54 54
         $target = new AuthHelper();
55 55
         $target->setService($auth);
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
     public function testThrowsExceptionIfTryingToProxyToUnknownMethod()
66 66
     {
67 67
         $auth = $this->getMockBuilder('\Auth\AuthenticationService')
68
-                     ->disableOriginalConstructor()
69
-                     ->getMock();
68
+                        ->disableOriginalConstructor()
69
+                        ->getMock();
70 70
 
71 71
         $target = new AuthHelper();
72 72
         $target->setService($auth);
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     public function testAuthenticationServiceCanBeSetAndRetrievedViaSetterAndGetterMethods()
78 78
     {
79 79
         $auth = $this->getMockBuilder('\Auth\AuthenticationService')
80
-                     ->disableOriginalConstructor()
81
-                     ->getMock();
80
+                        ->disableOriginalConstructor()
81
+                        ->getMock();
82 82
 
83 83
         $target = new AuthHelper();
84 84
 
@@ -108,12 +108,12 @@  discard block
 block discarded – undo
108 108
         $user->setLogin($login);
109 109
 
110 110
         $auth = $this->getMockBuilder('Auth\AuthenticationService')
111
-                     ->disableOriginalConstructor()
112
-                     ->getMock();
111
+                        ->disableOriginalConstructor()
112
+                        ->getMock();
113 113
 
114 114
         $auth->expects($this->exactly(2))
115
-             ->method('getUser')
116
-             ->willReturn($user);
115
+                ->method('getUser')
116
+                ->willReturn($user);
117 117
 
118 118
         $target = new AuthHelper();
119 119
         $target->setService($auth);
@@ -125,12 +125,12 @@  discard block
 block discarded – undo
125 125
     public function testIsAbleToCheckIfAUserIsCurrentlyLoggedIn()
126 126
     {
127 127
         $auth = $this->getMockBuilder('Auth\AuthenticationService')
128
-                     ->disableOriginalConstructor()
129
-                     ->getMock();
128
+                        ->disableOriginalConstructor()
129
+                        ->getMock();
130 130
 
131 131
         $auth->expects($this->exactly(2))
132
-             ->method('hasIdentity')
133
-             ->will($this->onConsecutiveCalls(true, false));
132
+                ->method('hasIdentity')
133
+                ->will($this->onConsecutiveCalls(true, false));
134 134
 
135 135
         $target = new AuthHelper();
136 136
         $target->setService($auth);
Please login to merge, or discard this patch.
module/Core/test/CoreTest/View/Helper/ParamsTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     public function testFromHeaderMethod()
77 77
     {
78 78
         $headers = "X-Test-Header-1: Header1Value\r\n"
79
-                 . "X-Test-Header-2: Header2Value\r\n";
79
+                    . "X-Test-Header-2: Header2Value\r\n";
80 80
         
81 81
         $r = new Request();
82 82
         $r->setHeaders(\Zend\Http\Headers::fromString($headers));
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 class ParamsTest extends TestCase
19 19
 {
20
-    public function getHelper(MvcEvent $e=null)
20
+    public function getHelper(MvcEvent $e = null)
21 21
     {
22 22
         if (null == $e) {
23 23
             $e = new MvcEvent();
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     
53 53
     public function testFromFilesMethod()
54 54
     {
55
-        $_FILES=array(
55
+        $_FILES = array(
56 56
             'testFile1' => array(
57 57
                 'name' => 'testfile1.txt',
58 58
                 'type' => 'text/plain',
Please login to merge, or discard this patch.
module/Install/test/InstallTest/Controller/Plugin/PrerequisitesTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
     public function testDirectInvokationProxiesToCorrectMethod()
45 45
     {
46 46
         $target = $this->getMockBuilder('\Install\Controller\Plugin\Prerequisites')
47
-                       ->setMethods(array('check'))
48
-                       ->getMock();
47
+                        ->setMethods(array('check'))
48
+                        ->getMock();
49 49
 
50 50
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|Prerequisites */
51 51
         $target->expects($this->once())->method('check')->willReturn(true);
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
     public function testCheckCallsCheckDirectory()
57 57
     {
58 58
         $target = $this->getMockBuilder('\Install\Controller\Plugin\Prerequisites')
59
-                       ->setMethods(array('checkDirectory'))
60
-                       ->getMock();
59
+                        ->setMethods(array('checkDirectory'))
60
+                        ->getMock();
61 61
 
62 62
         $target->expects($this->exactly(3))->method('checkDirectory')->willReturn(array('valid' => true));
63 63
 
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
         $dirStr = implode(DIRECTORY_SEPARATOR, $dirParts);
109 109
 
110 110
         $target = $this->getMockBuilder('\Install\Controller\Plugin\Prerequisites')
111
-                       ->setMethods(array('validateDirectory'))
112
-                       ->getMock();
111
+                        ->setMethods(array('validateDirectory'))
112
+                        ->getMock();
113 113
 
114 114
         $expectedValidateArg = $expected;
115 115
         unset($expectedValidateArg['valid']);
Please login to merge, or discard this patch.
module/Install/test/autoload_classmap.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 // Generated by ZF2's ./bin/classmap_generator.php
3 3
 return array(
4
-  'InstallTest\Controller\Plugin\PrerequisitesTest'      => __DIR__ . '/InstallTest/Controller/Plugin/PrerequisitesTest.php',
5
-  'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__ . '/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php',
6
-  'InstallTest\Form\InstallationTest'                    => __DIR__ . '/InstallTest/Form/InstallationTest.php',
7
-  'InstallTest\Validator\MongoDbConnectionStringTest'    => __DIR__ . '/InstallTest/Validator/MongoDbConnectionStringTest.php',
4
+    'InstallTest\Controller\Plugin\PrerequisitesTest'      => __DIR__ . '/InstallTest/Controller/Plugin/PrerequisitesTest.php',
5
+    'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__ . '/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php',
6
+    'InstallTest\Form\InstallationTest'                    => __DIR__ . '/InstallTest/Form/InstallationTest.php',
7
+    'InstallTest\Validator\MongoDbConnectionStringTest'    => __DIR__ . '/InstallTest/Validator/MongoDbConnectionStringTest.php',
8 8
 );
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 // Generated by ZF2's ./bin/classmap_generator.php
3 3
 return array(
4
-  'InstallTest\Controller\Plugin\PrerequisitesTest'      => __DIR__ . '/InstallTest/Controller/Plugin/PrerequisitesTest.php',
5
-  'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__ . '/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php',
6
-  'InstallTest\Form\InstallationTest'                    => __DIR__ . '/InstallTest/Form/InstallationTest.php',
7
-  'InstallTest\Validator\MongoDbConnectionStringTest'    => __DIR__ . '/InstallTest/Validator/MongoDbConnectionStringTest.php',
4
+  'InstallTest\Controller\Plugin\PrerequisitesTest'      => __DIR__.'/InstallTest/Controller/Plugin/PrerequisitesTest.php',
5
+  'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__.'/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php',
6
+  'InstallTest\Form\InstallationTest'                    => __DIR__.'/InstallTest/Form/InstallationTest.php',
7
+  'InstallTest\Validator\MongoDbConnectionStringTest'    => __DIR__.'/InstallTest/Validator/MongoDbConnectionStringTest.php',
8 8
 );
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/Hydrator/TemplateValuesHydratorTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function testFreeValuesKeysCanBeSetThroughConstructor()
42 42
     {
43
-        $keys = [ 'key1', 'key2' ];
43
+        $keys = ['key1', 'key2'];
44 44
         $target = new TemplateValuesHydrator($keys);
45 45
 
46 46
         $this->assertAttributeEquals($keys, 'freeValuesKeys', $target);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public function testSetAndGetFreeValuesKeys()
53 53
     {
54 54
         $target = new TemplateValuesHydrator();
55
-        $keys = [ 'key1', 'key2' ];
55
+        $keys = ['key1', 'key2'];
56 56
 
57 57
         $this->assertSame($target, $target->setFreeValuesKeys($keys), 'Fluent interface broken.');
58 58
         $this->assertEquals($keys, $target->getFreeValuesKeys());
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $values->freeKey1 = 'value1';
68 68
         $values->ignoredKey = 'irrelephant';
69 69
 
70
-        $target = new TemplateValuesHydrator([ 'freeKey1' ]);
70
+        $target = new TemplateValuesHydrator(['freeKey1']);
71 71
 
72 72
         $data = $target->extract($values);
73 73
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     public function testHydrate()
83 83
     {
84 84
         $values = new TemplateValues();
85
-        $target = new TemplateValuesHydrator([ 'testKeyOne' ]);
85
+        $target = new TemplateValuesHydrator(['testKeyOne']);
86 86
         $data = [
87 87
             'testKeyOne' => 'testValue',
88 88
             'ignoredKey' => 'irrelevant'
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/Provider/JobEntityProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         extract($params);
49 49
 
50 50
         if (!empty($createOrganization)) {
51
-            $organization = OrganizationEntityProvider::createEntityWithRandomData((array)$createOrganization);
51
+            $organization = OrganizationEntityProvider::createEntityWithRandomData((array) $createOrganization);
52 52
         }
53 53
 
54 54
         return array_merge($params, compact('organization'));
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/JobEventManagerFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
         $expectedIdentifiers = array('Jobs', 'Jobs/Events');
47 47
         $eventManager = new EventManager();
48 48
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
49
-                         ->disableOriginalConstructor()
50
-                         ->getMock();
49
+                            ->disableOriginalConstructor()
50
+                            ->getMock();
51 51
 
52 52
         $services->expects($this->once())->method('get')->with('EventManager')->willReturn($eventManager);
53 53
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/ModuleOptionsFactoryTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,16 +22,16 @@
 block discarded – undo
22 22
     public function testFactory($config)
23 23
     {
24 24
         $serviceManager = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
25
-                               ->disableOriginalConstructor()->getMock();
25
+                                ->disableOriginalConstructor()->getMock();
26 26
 
27 27
 
28 28
 
29 29
         if (isset($config['core_options'])) {
30 30
             $coreOptions = new \Core\Options\ModuleOptions($config['core_options']);
31 31
             $serviceManager->expects($this->exactly(2))
32
-                           ->method('get')
33
-                           ->withConsecutive(array('Config'), array('Core/Options'))
34
-                           ->will($this->onConsecutiveCalls($config, $coreOptions));
32
+                            ->method('get')
33
+                            ->withConsecutive(array('Config'), array('Core/Options'))
34
+                            ->will($this->onConsecutiveCalls($config, $coreOptions));
35 35
         } else {
36 36
             $serviceManager->expects($this->once())->method('get')->with('Config')->willReturn($config);
37 37
         }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Options/ModuleOptionsTest.php 1 patch
Spacing   +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
     public function testSetGetMultipostingApprovalMail()
33 33
     {
34
-        $mail="[email protected]";
34
+        $mail = "[email protected]";
35 35
 
36 36
         $this->options->setMultipostingApprovalMail($mail);
37 37
         $this->assertEquals($mail, $this->options->getMultipostingApprovalMail());
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function testSetGetDefaultLogo()
45 45
     {
46
-        $image="image.png";
46
+        $image = "image.png";
47 47
 
48 48
         $this->options->setDefaultLogo($image);
49 49
         $this->assertEquals($image, $this->options->getDefaultLogo());
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function testSetGetMultipostingTargetUri()
57 57
     {
58
-        $uri="http://test.de/uri";
58
+        $uri = "http://test.de/uri";
59 59
         $this->options->setMultipostingTargetUri($uri);
60 60
         $this->assertEquals($uri, $this->options->getMultipostingTargetUri());
61 61
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function testSetGetCompanyLogoMaxSize()
68 68
     {
69
-        $size='1234';
69
+        $size = '1234';
70 70
 
71 71
         $this->options->setCompanyLogoMaxSize($size);
72 72
         $this->assertEquals($size, $this->options->getCompanyLogoMaxSize());
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function testSetGetCompanyLogoMimeType()
80 80
     {
81
-        $mime=array("text/plain");
81
+        $mime = array("text/plain");
82 82
 
83 83
         $this->options->setCompanyLogoMimeType($mime);
84 84
         $this->assertEquals($mime, $this->options->getCompanyLogoMimeType());
Please login to merge, or discard this patch.