@@ -63,12 +63,12 @@ |
||
63 | 63 | ->will($this->onConsecutiveCalls($urlHelper, $translateHelper, $paramsHelper, $serverUrl)); |
64 | 64 | |
65 | 65 | $sm = $this->getMockBuilder(ServiceManager::class) |
66 | - ->disableOriginalConstructor() |
|
67 | - ->getMock(); |
|
68 | - $sm->expects($this->once()) |
|
69 | - ->method('get') |
|
70 | - ->with('ViewHelperManager') |
|
71 | - ->willReturn($helpers); |
|
66 | + ->disableOriginalConstructor() |
|
67 | + ->getMock(); |
|
68 | + $sm->expects($this->once()) |
|
69 | + ->method('get') |
|
70 | + ->with('ViewHelperManager') |
|
71 | + ->willReturn($helpers); |
|
72 | 72 | |
73 | 73 | $service = $target->__invoke($sm,'irrelevant'); |
74 | 74 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | ->with('ViewHelperManager') |
71 | 71 | ->willReturn($helpers); |
72 | 72 | |
73 | - $service = $target->__invoke($sm,'irrelevant'); |
|
73 | + $service = $target->__invoke($sm, 'irrelevant'); |
|
74 | 74 | |
75 | 75 | $this->assertInstanceOf('\Jobs\View\Helper\ApplyUrl', $service); |
76 | 76 | $this->assertAttributeSame($urlHelper, 'urlHelper', $service); |
@@ -57,8 +57,8 @@ |
||
57 | 57 | ->getMock(); |
58 | 58 | |
59 | 59 | $urlHelper |
60 | - ->expects($this->once()) |
|
61 | - ->method('__invoke') |
|
60 | + ->expects($this->once()) |
|
61 | + ->method('__invoke') |
|
62 | 62 | ->with(null, [], ['query' => $query->toArray()], true) |
63 | 63 | ->willReturn('returnUrl') |
64 | 64 | ; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ] |
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ FactoryInterface::class ]; |
|
46 | + private $inheritance = [FactoryInterface::class]; |
|
47 | 47 | |
48 | 48 | public function testInvoke() |
49 | 49 | { |
@@ -31,8 +31,8 @@ |
||
31 | 31 | { |
32 | 32 | $this->testedObj = new JobsPublisherFactory(); |
33 | 33 | $this->mockJobsOptions = $this->getMockBuilder('Jobs\Options\ModuleOptions') |
34 | - ->disableOriginalConstructor() |
|
35 | - ->getMock(); |
|
34 | + ->disableOriginalConstructor() |
|
35 | + ->getMock(); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -50,15 +50,15 @@ |
||
50 | 50 | $acl = new Acl(); |
51 | 51 | $user = new User(); |
52 | 52 | $auth = $this |
53 | - ->getMockBuilder(AuthenticationService::class) |
|
53 | + ->getMockBuilder(AuthenticationService::class) |
|
54 | 54 | ->disableOriginalConstructor() |
55 | 55 | ->setMethods(['getUser']) |
56 | 56 | ->getMock() |
57 | 57 | ; |
58 | 58 | |
59 | 59 | $auth->expects($this->once()) |
60 | - ->method('getUser') |
|
61 | - ->will($this->returnValue($user)) |
|
60 | + ->method('getUser') |
|
61 | + ->will($this->returnValue($user)) |
|
62 | 62 | ; |
63 | 63 | |
64 | 64 | $repository = $this->getMockBuilder(Job::class)->disableOriginalConstructor()->getMock(); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | '@testCreateService' => ['mock' => ['__invoke']], |
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ FactoryInterface::class ]; |
|
46 | + private $inheritance = [FactoryInterface::class]; |
|
47 | 47 | |
48 | 48 | public function testInvokation() |
49 | 49 | { |
@@ -43,17 +43,17 @@ |
||
43 | 43 | )); |
44 | 44 | |
45 | 45 | $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
46 | - ->disableOriginalConstructor() |
|
47 | - ->getMock(); |
|
46 | + ->disableOriginalConstructor() |
|
47 | + ->getMock(); |
|
48 | 48 | |
49 | 49 | $services->expects($this->exactly(3)) |
50 | - ->method('get') |
|
51 | - ->withConsecutive( |
|
50 | + ->method('get') |
|
51 | + ->withConsecutive( |
|
52 | 52 | array('Core/MailService'), |
53 | 53 | array('Jobs/Options'), |
54 | 54 | array('Core/Options') |
55 | - ) |
|
56 | - ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
55 | + ) |
|
56 | + ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
57 | 57 | |
58 | 58 | $expectedOptions = array( |
59 | 59 | 'siteName' => $coreOptions->getSiteName(), |
@@ -61,7 +61,7 @@ |
||
61 | 61 | ); |
62 | 62 | |
63 | 63 | $target = new MailSenderFactory(); |
64 | - $listener = $target->__invoke($services,'irrelevant'); |
|
64 | + $listener = $target->__invoke($services, 'irrelevant'); |
|
65 | 65 | |
66 | 66 | $this->assertInstanceOf('\Jobs\Listener\MailSender', $listener); |
67 | 67 | $this->assertAttributeSame($mailService, 'mailer', $listener); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
42 | 42 | ]; |
43 | 43 | |
44 | - private $inheritance = [ FactoryInterface::class ]; |
|
44 | + private $inheritance = [FactoryInterface::class]; |
|
45 | 45 | |
46 | 46 | |
47 | 47 | public function testServiceCreation() |
@@ -42,7 +42,7 @@ |
||
42 | 42 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
43 | 43 | ]; |
44 | 44 | |
45 | - private $inheritance = [ FactoryInterface::class ]; |
|
45 | + private $inheritance = [FactoryInterface::class]; |
|
46 | 46 | |
47 | 47 | public function testServiceCreation() |
48 | 48 | { |
@@ -55,12 +55,12 @@ |
||
55 | 55 | ->willReturn($urlHelper); |
56 | 56 | |
57 | 57 | $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
58 | - ->disableOriginalConstructor() |
|
59 | - ->getMock(); |
|
58 | + ->disableOriginalConstructor() |
|
59 | + ->getMock(); |
|
60 | 60 | |
61 | 61 | $serviceManagerMock->expects($this->once())->method('get') |
62 | - ->with('ViewHelperManager') |
|
63 | - ->willReturn($helpers); |
|
62 | + ->with('ViewHelperManager') |
|
63 | + ->willReturn($helpers); |
|
64 | 64 | |
65 | 65 | $service = $target->__invoke($serviceManagerMock,'irrelevant'); |
66 | 66 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | ->with('ViewHelperManager') |
63 | 63 | ->willReturn($helpers); |
64 | 64 | |
65 | - $service = $target->__invoke($serviceManagerMock,'irrelevant'); |
|
65 | + $service = $target->__invoke($serviceManagerMock, 'irrelevant'); |
|
66 | 66 | |
67 | 67 | $this->assertInstanceOf('\Jobs\Model\ApiJobDehydrator', $service); |
68 | 68 | $this->assertAttributeSame($urlHelper, 'url', $service); |
@@ -139,7 +139,7 @@ |
||
139 | 139 | ->with($this->equalTo($userId), $this->equalTo($limit)) |
140 | 140 | ->willReturn($cursor); |
141 | 141 | |
142 | - $actual = $this->listListener->getItems($user, $view , $limit); |
|
142 | + $actual = $this->listListener->getItems($user, $view, $limit); |
|
143 | 143 | |
144 | 144 | $this->assertInternalType('array', $actual); |
145 | 145 | $this->assertCount(1, $actual); |