Passed
Push — master ( a735f8...2fcc49 )
by Aleksei
12:39
created
src/Streams/tests/StreamsTest.php 1 patch
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -64,15 +64,21 @@  discard block
 block discarded – undo
64 64
     #[\PHPUnit\Framework\Attributes\RequiresPhp('< 8.0')]
65 65
     public function testException(): void
66 66
     {
67
-        try {
67
+        try
68
+        {
68 69
             \fopen('spiral://non-exists', 'rb');
69
-        } catch (\Throwable $e) {
70
+        }
71
+        catch (\Throwable $e)
72
+        {
70 73
             self::assertStringContainsString('failed to open stream', $e->getMessage());
71 74
         }
72 75
 
73
-        try {
76
+        try
77
+        {
74 78
             \filemtime('spiral://non-exists');
75
-        } catch (\Throwable $e) {
79
+        }
80
+        catch (\Throwable $e)
81
+        {
76 82
             self::assertStringContainsString('stat failed', $e->getMessage());
77 83
         }
78 84
     }
@@ -80,15 +86,21 @@  discard block
 block discarded – undo
80 86
     #[\PHPUnit\Framework\Attributes\RequiresPhp('>= 8.0')]
81 87
     public function testExceptionPHP8(): void
82 88
     {
83
-        try {
89
+        try
90
+        {
84 91
             \fopen('spiral://non-exists', 'rb');
85
-        } catch (\Throwable $e) {
92
+        }
93
+        catch (\Throwable $e)
94
+        {
86 95
             self::assertStringContainsString('Failed to open stream', $e->getMessage());
87 96
         }
88 97
 
89
-        try {
98
+        try
99
+        {
90 100
             \filemtime('spiral://non-exists');
91
-        } catch (\Throwable $e) {
101
+        }
102
+        catch (\Throwable $e)
103
+        {
92 104
             self::assertStringContainsString('stat failed', $e->getMessage());
93 105
         }
94 106
     }
Please login to merge, or discard this patch.