@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
3 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
4 | 4 | |
5 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
5 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | Categories::class, |
46 | 46 | 'args' => false, |
47 | 47 | 'mock' => ['getService', 'store'], |
48 | - '@testInheritance' => [Categories::class, 'as_reflection' => true ], |
|
48 | + '@testInheritance' => [Categories::class, 'as_reflection' => true], |
|
49 | 49 | '@testFindByCreatesDefaultCategory' => [ |
50 | 50 | 'args' => 'setupTargetArgsForFindTests', |
51 | 51 | 'mock' => ['createDefaultCategory' => 2], |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | */ |
61 | 61 | private $target = Job::class; |
62 | 62 | |
63 | - private $inheritance = [ MetaDataProviderInterface::class ]; |
|
63 | + private $inheritance = [MetaDataProviderInterface::class]; |
|
64 | 64 | |
65 | - private $traits = [ MetaDataProviderTrait::class ]; |
|
65 | + private $traits = [MetaDataProviderTrait::class]; |
|
66 | 66 | |
67 | 67 | |
68 | 68 | /** |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | */ |
175 | 175 | public function testSetGetPortals() |
176 | 176 | { |
177 | - $link = array('jobsintown-de','yawik'); |
|
177 | + $link = array('jobsintown-de', 'yawik'); |
|
178 | 178 | $this->target->setPortals($link); |
179 | 179 | $this->assertEquals($link, $this->target->getPortals()); |
180 | 180 | } |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | |
242 | 242 | public function provideDates() |
243 | 243 | { |
244 | - $date="2011-01-12"; |
|
244 | + $date = "2011-01-12"; |
|
245 | 245 | return [ |
246 | 246 | [$date, new \DateTime($date)], |
247 | 247 | [new \DateTime($date), new \DateTime($date)], |
@@ -251,12 +251,12 @@ discard block |
||
251 | 251 | public function provideSetGetStatusTestData() |
252 | 252 | { |
253 | 253 | return array( |
254 | - array(Status::CREATED, Status::CREATED), |
|
255 | - array(Status::ACTIVE, Status::ACTIVE), |
|
256 | - array(Status::EXPIRED, Status::EXPIRED), |
|
257 | - array(Status::PUBLISH, Status::PUBLISH), |
|
254 | + array(Status::CREATED, Status::CREATED), |
|
255 | + array(Status::ACTIVE, Status::ACTIVE), |
|
256 | + array(Status::EXPIRED, Status::EXPIRED), |
|
257 | + array(Status::PUBLISH, Status::PUBLISH), |
|
258 | 258 | array(Status::INACTIVE, Status::INACTIVE), |
259 | - array(Status::ACTIVE, Status::ACTIVE), |
|
259 | + array(Status::ACTIVE, Status::ACTIVE), |
|
260 | 260 | ); |
261 | 261 | } |
262 | 262 | /** |
@@ -286,8 +286,8 @@ discard block |
||
286 | 286 | public function provideSetGetAtsEnabledTestData() |
287 | 287 | { |
288 | 288 | return array( |
289 | - array(true, true), |
|
290 | - array(false, false), |
|
289 | + array(true, true), |
|
290 | + array(false, false), |
|
291 | 291 | ); |
292 | 292 | } |
293 | 293 | /** |
@@ -305,8 +305,8 @@ discard block |
||
305 | 305 | public function provideSetGetDraftTestData() |
306 | 306 | { |
307 | 307 | return array( |
308 | - array(true, true), |
|
309 | - array(false, false), |
|
308 | + array(true, true), |
|
309 | + array(false, false), |
|
310 | 310 | ); |
311 | 311 | } |
312 | 312 | /** |
@@ -324,8 +324,8 @@ discard block |
||
324 | 324 | public function provideSetGetTemplateTestData() |
325 | 325 | { |
326 | 326 | return array( |
327 | - array(null, 'default'), |
|
328 | - array('mytemplate', 'mytemplate'), |
|
327 | + array(null, 'default'), |
|
328 | + array('mytemplate', 'mytemplate'), |
|
329 | 329 | ); |
330 | 330 | } |
331 | 331 | /** |
@@ -343,9 +343,9 @@ discard block |
||
343 | 343 | public function provideIsActiveTestData() |
344 | 344 | { |
345 | 345 | return array( |
346 | - array(true, Status::ACTIVE, false), |
|
346 | + array(true, Status::ACTIVE, false), |
|
347 | 347 | array(false, Status::ACTIVE, true), |
348 | - array(true, Status::INACTIVE,false), |
|
348 | + array(true, Status::INACTIVE, false), |
|
349 | 349 | array(false, Status::INACTIVE, false), |
350 | 350 | ); |
351 | 351 | } |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | |
593 | 593 | public function testGetSnapshotGenerator() |
594 | 594 | { |
595 | - $expected = array( |
|
595 | + $expected = array( |
|
596 | 596 | 'hydrator' => '', |
597 | 597 | 'target' => 'Jobs\Entity\JobSnapshot', |
598 | 598 | 'exclude' => array('permissions', 'history') |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | |
638 | 638 | public function setDescription($description) |
639 | 639 | { |
640 | - $this->description=$description; |
|
640 | + $this->description = $description; |
|
641 | 641 | return $this; |
642 | 642 | } |
643 | 643 | public function getDescription() |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | } |
647 | 647 | public function setTest($test) |
648 | 648 | { |
649 | - $this->test=$test; |
|
649 | + $this->test = $test; |
|
650 | 650 | return $this; |
651 | 651 | } |
652 | 652 | public function getTest() |
@@ -50,13 +50,13 @@ discard block |
||
50 | 50 | public function provideCreatingInstancesTestData() |
51 | 51 | { |
52 | 52 | return array( |
53 | - array(Status::CREATED, null , new Status(Status::CREATED), "[System]"), |
|
54 | - array(Status::WAITING_FOR_APPROVAL, 'message2' , new Status(Status::WAITING_FOR_APPROVAL), "message2"), |
|
55 | - array(Status::REJECTED, 'message3' , new Status(Status::REJECTED), "message3"), |
|
56 | - array(Status::PUBLISH, 'message4' , new Status(Status::PUBLISH), "message4"), |
|
57 | - array(Status::ACTIVE, 'message5' , new Status(Status::ACTIVE), "message5"), |
|
58 | - array(Status::INACTIVE, 'message6' , new Status(Status::INACTIVE), "message6"), |
|
59 | - array(Status::EXPIRED, 'message7' , new Status(Status::EXPIRED), "message7"), |
|
53 | + array(Status::CREATED, null, new Status(Status::CREATED), "[System]"), |
|
54 | + array(Status::WAITING_FOR_APPROVAL, 'message2', new Status(Status::WAITING_FOR_APPROVAL), "message2"), |
|
55 | + array(Status::REJECTED, 'message3', new Status(Status::REJECTED), "message3"), |
|
56 | + array(Status::PUBLISH, 'message4', new Status(Status::PUBLISH), "message4"), |
|
57 | + array(Status::ACTIVE, 'message5', new Status(Status::ACTIVE), "message5"), |
|
58 | + array(Status::INACTIVE, 'message6', new Status(Status::INACTIVE), "message6"), |
|
59 | + array(Status::EXPIRED, 'message7', new Status(Status::EXPIRED), "message7"), |
|
60 | 60 | ); |
61 | 61 | } |
62 | 62 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function testSetGetDate() |
98 | 98 | { |
99 | - $date=new \DateTime("2017-02-28 11:11:11"); |
|
99 | + $date = new \DateTime("2017-02-28 11:11:11"); |
|
100 | 100 | $this->target->setDate($date); |
101 | 101 | |
102 | 102 | $this->assertEquals($date, $this->target->getDate()); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function testSetGetMessage() |
110 | 110 | { |
111 | - $message="my message"; |
|
111 | + $message = "my message"; |
|
112 | 112 | $this->target->setMessage($message); |
113 | 113 | |
114 | 114 | $this->assertEquals($message, $this->target->getMessage()); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function testSetGetStatus() |
122 | 122 | { |
123 | - $status=new Status(Status::CREATED); |
|
123 | + $status = new Status(Status::CREATED); |
|
124 | 124 | $this->target->setStatus($status); |
125 | 125 | $this->assertEquals($status, $this->target->getStatus()); |
126 | 126 | } |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | public function provideBoolean() |
181 | 181 | { |
182 | 182 | return [ |
183 | - [true,true], |
|
183 | + [true, true], |
|
184 | 184 | [false, false], |
185 | 185 | [null, false] |
186 | 186 | ]; |
@@ -197,9 +197,9 @@ discard block |
||
197 | 197 | |
198 | 198 | public function provideArrays() |
199 | 199 | { |
200 | - $array = ['facebook','linkedin','xing']; |
|
200 | + $array = ['facebook', 'linkedin', 'xing']; |
|
201 | 201 | return [ |
202 | - [$array,$array], |
|
202 | + [$array, $array], |
|
203 | 203 | ]; |
204 | 204 | } |
205 | 205 | } |