@@ -51,19 +51,19 @@ |
||
51 | 51 | { |
52 | 52 | $mock = $this->getMockBuilder(AddItemFieldset::class) |
53 | 53 | ->setMethods(['setObject', 'add']) |
54 | - ->disableOriginalConstructor()->getMock(); |
|
54 | + ->disableOriginalConstructor()->getMock(); |
|
55 | 55 | |
56 | 56 | $mock->expects($this->once())->method('setObject')->with($this->isInstanceOf(\ArrayObject::class)); |
57 | 57 | |
58 | 58 | $mock->expects($this->exactly(6))->method('add') |
59 | - ->withConsecutive( |
|
60 | - [['name' => 'id', 'type' => 'Hidden']], |
|
61 | - [['name' => 'current', 'type' => 'Hidden']], |
|
62 | - [['name' => 'do', 'type' => 'Hidden']], |
|
63 | - [['name' => 'name', 'type' => 'Text', 'options' => ['label' => 'Name'], 'attributes' => ['required' => 'required']]], |
|
64 | - [['name' => 'value', 'type' => 'Text', 'options' => ['label' => 'Value']]], |
|
65 | - [['name' => 'priority', 'type' => 'Text']] |
|
66 | - ); |
|
59 | + ->withConsecutive( |
|
60 | + [['name' => 'id', 'type' => 'Hidden']], |
|
61 | + [['name' => 'current', 'type' => 'Hidden']], |
|
62 | + [['name' => 'do', 'type' => 'Hidden']], |
|
63 | + [['name' => 'name', 'type' => 'Text', 'options' => ['label' => 'Name'], 'attributes' => ['required' => 'required']]], |
|
64 | + [['name' => 'value', 'type' => 'Text', 'options' => ['label' => 'Value']]], |
|
65 | + [['name' => 'priority', 'type' => 'Text']] |
|
66 | + ); |
|
67 | 67 | |
68 | 68 | return $mock; |
69 | 69 | } |
@@ -146,7 +146,7 @@ |
||
146 | 146 | |
147 | 147 | $this->assertEquals( |
148 | 148 | ['test' => ['required' => true], |
149 | - 'test2' => ['filters' => []]], |
|
149 | + 'test2' => ['filters' => []]], |
|
150 | 150 | $actual |
151 | 151 | ); |
152 | 152 | } |
@@ -282,10 +282,10 @@ |
||
282 | 282 | 'return' => isset($methodSpec['@return']) |
283 | 283 | ? $call((array) $methodSpec['@return']) |
284 | 284 | : ( |
285 | - isset($methodSpec['return']) |
|
285 | + isset($methodSpec['return']) |
|
286 | 286 | ? ('__self__' === $methodSpec['return'] ? $this->returnSelf() : $this->returnValue($methodSpec['return'])) |
287 | 287 | : null |
288 | - ), |
|
288 | + ), |
|
289 | 289 | ]; |
290 | 290 | } |
291 | 291 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $errTmpl = __METHOD__ . ': ' . get_class($this); |
186 | 186 | if (!property_exists($this, 'target') || (!is_object($this->target) && !isset($spec['target']))) { |
187 | 187 | throw new PHPUnitException($errTmpl |
188 | - . ' must define the property "target" and the value must be an object.'); |
|
188 | + . ' must define the property "target" and the value must be an object.'); |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | if (!is_array($spec)) { |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | } |
400 | 400 | |
401 | 401 | $err = __TRAIT__ . ': ' . get_class($this) . ': Setter ' . get_class($this->target) . '::' . $setter |
402 | - . ($expect === $this->target ? ' breaks fluent interface.' : ' does not return expected value.'); |
|
402 | + . ($expect === $this->target ? ' breaks fluent interface.' : ' does not return expected value.'); |
|
403 | 403 | |
404 | 404 | |
405 | 405 | if (false === $args) { |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | protected function setUp(): void |
35 | 35 | { |
36 | 36 | $this->target = $this->getMockBuilder('\Jobs\Form\CompanyNameFieldset') |
37 | - ->disableOriginalConstructor() |
|
38 | - ->setMethods(array('setAttribute', 'setName', 'add')) |
|
39 | - ->getMock(); |
|
37 | + ->disableOriginalConstructor() |
|
38 | + ->setMethods(array('setAttribute', 'setName', 'add')) |
|
39 | + ->getMock(); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -53,12 +53,12 @@ discard block |
||
53 | 53 | public function testInitialization() |
54 | 54 | { |
55 | 55 | $this->target->expects($this->once()) |
56 | - ->method('setAttribute') |
|
57 | - ->with('id', 'jobcompanyname-fieldset'); |
|
56 | + ->method('setAttribute') |
|
57 | + ->with('id', 'jobcompanyname-fieldset'); |
|
58 | 58 | |
59 | 59 | $this->target->expects($this->once()) |
60 | - ->method('setName') |
|
61 | - ->with('jobCompanyName'); |
|
60 | + ->method('setName') |
|
61 | + ->with('jobCompanyName'); |
|
62 | 62 | |
63 | 63 | $addParam1 = array( |
64 | 64 | 'type' => 'Jobs/HiringOrganizationSelect', |
@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | ]; |
94 | 94 | |
95 | 95 | $this->target->expects($this->exactly(2)) |
96 | - ->method('add') |
|
97 | - ->withConsecutive( |
|
98 | - [$addParam1], |
|
99 | - [$addParam2] |
|
96 | + ->method('add') |
|
97 | + ->withConsecutive( |
|
98 | + [$addParam1], |
|
99 | + [$addParam2] |
|
100 | 100 | ); |
101 | 101 | |
102 | 102 | $this->target->init(); |
@@ -71,12 +71,12 @@ discard block |
||
71 | 71 | ->getMock(); |
72 | 72 | |
73 | 73 | $this->loginFilterMock = $this->getMockBuilder('Auth\Filter\LoginFilter') |
74 | - ->disableOriginalConstructor() |
|
75 | - ->getMock(); |
|
74 | + ->disableOriginalConstructor() |
|
75 | + ->getMock(); |
|
76 | 76 | |
77 | 77 | $this->optionsMock = $this->getMockBuilder('Auth\Options\ModuleOptions') |
78 | - ->disableOriginalConstructor() |
|
79 | - ->getMock(); |
|
78 | + ->disableOriginalConstructor() |
|
79 | + ->getMock(); |
|
80 | 80 | |
81 | 81 | $this->testedObject = new ForgotPassword($this->userRepositoryMock, $this->tokenGeneratorMock, $this->loginFilterMock, $this->optionsMock); |
82 | 82 | |
@@ -149,8 +149,8 @@ discard block |
||
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
152 | - * @todo fix or delete |
|
153 | - */ |
|
152 | + * @todo fix or delete |
|
153 | + */ |
|
154 | 154 | /* |
155 | 155 | public function testProceed() |
156 | 156 | { |
@@ -43,10 +43,10 @@ |
||
43 | 43 | |
44 | 44 | protected function setUp(): void |
45 | 45 | { |
46 | - $events = $this->getMockBuilder(EventManager::class) |
|
47 | - ->setMethods(['getEvent', 'triggerEvent']) |
|
48 | - ->getMock(); |
|
49 | - $this->target = new AdminController($events); |
|
46 | + $events = $this->getMockBuilder(EventManager::class) |
|
47 | + ->setMethods(['getEvent', 'triggerEvent']) |
|
48 | + ->getMock(); |
|
49 | + $this->target = new AdminController($events); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | public function testIndexAction() |
@@ -35,8 +35,8 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * @todo |
|
39 | - */ |
|
38 | + * @todo |
|
39 | + */ |
|
40 | 40 | /* |
41 | 41 | public function testInit() |
42 | 42 | { |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | protected function setUp(): void |
27 | 27 | { |
28 | 28 | $this->target = $this->getMockBuilder('Core\Form\BaseForm') |
29 | - ->disableOriginalConstructor() |
|
30 | - ->setMethods(array('AddButtonsFieldset', 'AddBaseFieldset', 'add')) |
|
31 | - ->getMock(); |
|
29 | + ->disableOriginalConstructor() |
|
30 | + ->setMethods(array('AddButtonsFieldset', 'AddBaseFieldset', 'add')) |
|
31 | + ->getMock(); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function testConstructor() |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @todo |
|
54 | - */ |
|
53 | + * @todo |
|
54 | + */ |
|
55 | 55 | /* |
56 | 56 | public function testAddBaseFieldsetWithoutBaseFieldsetSet() |
57 | 57 | { |