Passed
Push — master ( b8f44e...b50696 )
by Aleksei
10:39
created
src/Streams/tests/StreamsTest.php 1 patch
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -76,15 +76,21 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function testException(): void
78 78
     {
79
-        try {
79
+        try
80
+        {
80 81
             fopen('spiral://non-exists', 'rb');
81
-        } catch (\Throwable $e) {
82
+        }
83
+        catch (\Throwable $e)
84
+        {
82 85
             $this->assertStringContainsString('failed to open stream', $e->getMessage());
83 86
         }
84 87
 
85
-        try {
88
+        try
89
+        {
86 90
             filemtime('spiral://non-exists');
87
-        } catch (\Throwable $e) {
91
+        }
92
+        catch (\Throwable $e)
93
+        {
88 94
             $this->assertStringContainsString('stat failed', $e->getMessage());
89 95
         }
90 96
     }
@@ -94,15 +100,21 @@  discard block
 block discarded – undo
94 100
      */
95 101
     public function testExceptionPHP8(): void
96 102
     {
97
-        try {
103
+        try
104
+        {
98 105
             fopen('spiral://non-exists', 'rb');
99
-        } catch (\Throwable $e) {
106
+        }
107
+        catch (\Throwable $e)
108
+        {
100 109
             $this->assertStringContainsString('Failed to open stream', $e->getMessage());
101 110
         }
102 111
 
103
-        try {
112
+        try
113
+        {
104 114
             filemtime('spiral://non-exists');
105
-        } catch (\Throwable $e) {
115
+        }
116
+        catch (\Throwable $e)
117
+        {
106 118
             $this->assertStringContainsString('stat failed', $e->getMessage());
107 119
         }
108 120
     }
Please login to merge, or discard this patch.