@@ -21,7 +21,8 @@ |
||
| 21 | 21 | |
| 22 | 22 | protected function setUp(): void |
| 23 | 23 | { |
| 24 | - $this->trait = new class { |
|
| 24 | + $this->trait = new class |
|
| 25 | + { |
|
| 25 | 26 | use LimitsTrait; |
| 26 | 27 | }; |
| 27 | 28 | } |
@@ -15,7 +15,8 @@ |
||
| 15 | 15 | { |
| 16 | 16 | protected function tearDown(): void |
| 17 | 17 | { |
| 18 | - if ((int)session_status() === PHP_SESSION_ACTIVE) { |
|
| 18 | + if ((int)session_status() === PHP_SESSION_ACTIVE) |
|
| 19 | + { |
|
| 19 | 20 | session_abort(); |
| 20 | 21 | } |
| 21 | 22 | } |
@@ -39,7 +39,8 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | protected function tearDown(): void |
| 41 | 41 | { |
| 42 | - if ((int)session_status() === PHP_SESSION_ACTIVE) { |
|
| 42 | + if ((int)session_status() === PHP_SESSION_ACTIVE) |
|
| 43 | + { |
|
| 43 | 44 | session_abort(); |
| 44 | 45 | } |
| 45 | 46 | } |
@@ -113,7 +114,8 @@ discard block |
||
| 113 | 114 | self::assertSame('default', $section->getName()); |
| 114 | 115 | |
| 115 | 116 | $section->set('key', 'value'); |
| 116 | - foreach ($section as $key => $value) { |
|
| 117 | + foreach ($section as $key => $value) |
|
| 118 | + { |
|
| 117 | 119 | self::assertSame('key', $key); |
| 118 | 120 | self::assertSame('value', $value); |
| 119 | 121 | } |
@@ -28,7 +28,8 @@ |
||
| 28 | 28 | |
| 29 | 29 | protected function setUp(): void |
| 30 | 30 | { |
| 31 | - $this->trait = new class { |
|
| 31 | + $this->trait = new class |
|
| 32 | + { |
|
| 32 | 33 | use GuardedTrait; |
| 33 | 34 | }; |
| 34 | 35 | $this->guard = $this->createMock(GuardInterface::class); |
@@ -29,7 +29,8 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | protected function setUp(): void |
| 31 | 31 | { |
| 32 | - if (!\class_exists(Kernel::class)) { |
|
| 32 | + if (!\class_exists(Kernel::class)) |
|
| 33 | + { |
|
| 33 | 34 | $this->markTestSkipped('A "spiral/framework" dependency is required to run these tests'); |
| 34 | 35 | } |
| 35 | 36 | |
@@ -42,14 +43,16 @@ discard block |
||
| 42 | 43 | |
| 43 | 44 | $this->storage = new Storage($this->dir() . '/Fixtures/'); |
| 44 | 45 | |
| 45 | - foreach (static::STORE as $name) { |
|
| 46 | + foreach (static::STORE as $name) |
|
| 47 | + { |
|
| 46 | 48 | $this->storage->store($name); |
| 47 | 49 | } |
| 48 | 50 | } |
| 49 | 51 | |
| 50 | 52 | protected function tearDown(): void |
| 51 | 53 | { |
| 52 | - foreach (static::STORE as $name) { |
|
| 54 | + foreach (static::STORE as $name) |
|
| 55 | + { |
|
| 53 | 56 | $this->storage->restore($name); |
| 54 | 57 | } |
| 55 | 58 | } |
@@ -19,7 +19,8 @@ |
||
| 19 | 19 | { |
| 20 | 20 | protected function setUp(): void |
| 21 | 21 | { |
| 22 | - if ((string)ini_get('zend.assertions') === 1) { |
|
| 22 | + if ((string)ini_get('zend.assertions') === 1) |
|
| 23 | + { |
|
| 23 | 24 | ini_set('zend.assertions', 0); |
| 24 | 25 | } |
| 25 | 26 | } |