@@ -28,9 +28,13 @@ |
||
28 | 28 | public function testFactoryAvailability(string $rule, bool $gotResult): void |
29 | 29 | { |
30 | 30 | $factory = new Rules\Factory(); |
31 | - if (!$gotResult) $this->expectException(RuleException::class); |
|
31 | + if (!$gotResult) { |
|
32 | + $this->expectException(RuleException::class); |
|
33 | + } |
|
32 | 34 | $data = $factory->getRule($rule); |
33 | - if ($data) $this->assertInstanceOf(Rules\ARule::class, $data); |
|
35 | + if ($data) { |
|
36 | + $this->assertInstanceOf(Rules\ARule::class, $data); |
|
37 | + } |
|
34 | 38 | } |
35 | 39 | |
36 | 40 | public function inputsProvider(): array |
@@ -25,9 +25,13 @@ |
||
25 | 25 | public function testFileFactoryAvailability(string $rule, bool $gotResult): void |
26 | 26 | { |
27 | 27 | $factory = new Rules\File\Factory(); |
28 | - if (!$gotResult) $this->expectException(RuleException::class); |
|
28 | + if (!$gotResult) { |
|
29 | + $this->expectException(RuleException::class); |
|
30 | + } |
|
29 | 31 | $data = $factory->getRule($rule); |
30 | - if ($data) $this->assertInstanceOf(Rules\File\AFileRule::class, $data); |
|
32 | + if ($data) { |
|
33 | + $this->assertInstanceOf(Rules\File\AFileRule::class, $data); |
|
34 | + } |
|
31 | 35 | } |
32 | 36 | |
33 | 37 | public function inputFilesProvider(): array |