Completed
Push — master ( 6366df...fbe022 )
by Kirill
23s queued 19s
created
src/Attributes/tests/Reader/ReaderTestCase.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
     {
77 77
         parent::setUpBeforeClass();
78 78
 
79
-        require_once __DIR__ . '/Fixture/function.php';
80
-        require_once __DIR__ . '/Fixture/UndefinedMeta.php';
79
+        require_once __DIR__.'/Fixture/function.php';
80
+        require_once __DIR__.'/Fixture/UndefinedMeta.php';
81 81
     }
82 82
 
83 83
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     protected function fixture(string $suffix): string
88 88
     {
89
-        return '\\Spiral\\Tests\\Attributes\\Reader\\Fixture\\' . \trim($suffix, '\\');
89
+        return '\\Spiral\\Tests\\Attributes\\Reader\\Fixture\\'.\trim($suffix, '\\');
90 90
     }
91 91
 
92 92
     public function testClassMetadataCount(): void
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
             'field' => 'value'
103 103
         ]);
104 104
 
105
-        if ($this->classMetadataCount === 0) {
105
+        if ($this->classMetadataCount === 0){
106 106
             $this->expectNotToPerformAssertions();
107 107
         }
108 108
 
109
-        foreach ($this->getClassMetadata(AnnotatedClass::class) as $actual) {
109
+        foreach ($this->getClassMetadata(AnnotatedClass::class) as $actual){
110 110
             $this->assertEquals($expected, $actual);
111 111
         }
112 112
     }
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
             'field' => 'value'
125 125
         ]);
126 126
 
127
-        if ($this->constantMetadataCount === 0) {
127
+        if ($this->constantMetadataCount === 0){
128 128
             $this->expectNotToPerformAssertions();
129 129
         }
130 130
 
131
-        foreach ($this->getConstantMetadata(AnnotatedClass::class, 'CONSTANT') as $actual) {
131
+        foreach ($this->getConstantMetadata(AnnotatedClass::class, 'CONSTANT') as $actual){
132 132
             $this->assertEquals($expected, $actual);
133 133
         }
134 134
     }
@@ -146,11 +146,11 @@  discard block
 block discarded – undo
146 146
             'field' => 'value'
147 147
         ]);
148 148
 
149
-        if ($this->propertyMetadataCount === 0) {
149
+        if ($this->propertyMetadataCount === 0){
150 150
             $this->expectNotToPerformAssertions();
151 151
         }
152 152
 
153
-        foreach ($this->getPropertyMetadata(AnnotatedClass::class, 'property') as $actual) {
153
+        foreach ($this->getPropertyMetadata(AnnotatedClass::class, 'property') as $actual){
154 154
             $this->assertEquals($expected, $actual);
155 155
         }
156 156
     }
@@ -168,11 +168,11 @@  discard block
 block discarded – undo
168 168
             'field' => 'value'
169 169
         ]);
170 170
 
171
-        if ($this->methodMetadataCount === 0) {
171
+        if ($this->methodMetadataCount === 0){
172 172
             $this->expectNotToPerformAssertions();
173 173
         }
174 174
 
175
-        foreach ($this->getMethodMetadata(AnnotatedClass::class, 'method') as $actual) {
175
+        foreach ($this->getMethodMetadata(AnnotatedClass::class, 'method') as $actual){
176 176
             $this->assertEquals($expected, $actual);
177 177
         }
178 178
     }
@@ -190,11 +190,11 @@  discard block
 block discarded – undo
190 190
             'field' => 'value'
191 191
         ]);
192 192
 
193
-        if ($this->methodParameterMetadataCount === 0) {
193
+        if ($this->methodParameterMetadataCount === 0){
194 194
             $this->expectNotToPerformAssertions();
195 195
         }
196 196
 
197
-        foreach ($this->getMethodParameterMetadata(AnnotatedClass::class, 'method', 'parameter') as $actual) {
197
+        foreach ($this->getMethodParameterMetadata(AnnotatedClass::class, 'method', 'parameter') as $actual){
198 198
             $this->assertEquals($expected, $actual);
199 199
         }
200 200
     }
@@ -212,11 +212,11 @@  discard block
 block discarded – undo
212 212
             'field' => 'value'
213 213
         ]);
214 214
 
215
-        if ($this->functionMetadataCount === 0) {
215
+        if ($this->functionMetadataCount === 0){
216 216
             $this->expectNotToPerformAssertions();
217 217
         }
218 218
 
219
-        foreach ($this->getFunctionMetadata($this->fixture('annotated_function')) as $actual) {
219
+        foreach ($this->getFunctionMetadata($this->fixture('annotated_function')) as $actual){
220 220
             $this->assertEquals($expected, $actual);
221 221
         }
222 222
     }
@@ -234,12 +234,12 @@  discard block
 block discarded – undo
234 234
             'field' => 'value'
235 235
         ]);
236 236
 
237
-        if ($this->functionParameterMetadataCount === 0) {
237
+        if ($this->functionParameterMetadataCount === 0){
238 238
             $this->expectNotToPerformAssertions();
239 239
         }
240 240
 
241 241
         $function = $this->fixture('annotated_function');
242
-        foreach ($this->getFunctionParameterMetadata($function, 'parameter') as $actual) {
242
+        foreach ($this->getFunctionParameterMetadata($function, 'parameter') as $actual){
243 243
             $this->assertEquals($expected, $actual);
244 244
         }
245 245
     }
Please login to merge, or discard this patch.
Braces   +28 added lines, -14 removed lines patch added patch discarded remove patch
@@ -102,11 +102,13 @@  discard block
 block discarded – undo
102 102
             'field' => 'value'
103 103
         ]);
104 104
 
105
-        if ($this->classMetadataCount === 0) {
105
+        if ($this->classMetadataCount === 0)
106
+        {
106 107
             $this->expectNotToPerformAssertions();
107 108
         }
108 109
 
109
-        foreach ($this->getClassMetadata(AnnotatedClass::class) as $actual) {
110
+        foreach ($this->getClassMetadata(AnnotatedClass::class) as $actual)
111
+        {
110 112
             $this->assertEquals($expected, $actual);
111 113
         }
112 114
     }
@@ -124,11 +126,13 @@  discard block
 block discarded – undo
124 126
             'field' => 'value'
125 127
         ]);
126 128
 
127
-        if ($this->constantMetadataCount === 0) {
129
+        if ($this->constantMetadataCount === 0)
130
+        {
128 131
             $this->expectNotToPerformAssertions();
129 132
         }
130 133
 
131
-        foreach ($this->getConstantMetadata(AnnotatedClass::class, 'CONSTANT') as $actual) {
134
+        foreach ($this->getConstantMetadata(AnnotatedClass::class, 'CONSTANT') as $actual)
135
+        {
132 136
             $this->assertEquals($expected, $actual);
133 137
         }
134 138
     }
@@ -146,11 +150,13 @@  discard block
 block discarded – undo
146 150
             'field' => 'value'
147 151
         ]);
148 152
 
149
-        if ($this->propertyMetadataCount === 0) {
153
+        if ($this->propertyMetadataCount === 0)
154
+        {
150 155
             $this->expectNotToPerformAssertions();
151 156
         }
152 157
 
153
-        foreach ($this->getPropertyMetadata(AnnotatedClass::class, 'property') as $actual) {
158
+        foreach ($this->getPropertyMetadata(AnnotatedClass::class, 'property') as $actual)
159
+        {
154 160
             $this->assertEquals($expected, $actual);
155 161
         }
156 162
     }
@@ -168,11 +174,13 @@  discard block
 block discarded – undo
168 174
             'field' => 'value'
169 175
         ]);
170 176
 
171
-        if ($this->methodMetadataCount === 0) {
177
+        if ($this->methodMetadataCount === 0)
178
+        {
172 179
             $this->expectNotToPerformAssertions();
173 180
         }
174 181
 
175
-        foreach ($this->getMethodMetadata(AnnotatedClass::class, 'method') as $actual) {
182
+        foreach ($this->getMethodMetadata(AnnotatedClass::class, 'method') as $actual)
183
+        {
176 184
             $this->assertEquals($expected, $actual);
177 185
         }
178 186
     }
@@ -190,11 +198,13 @@  discard block
 block discarded – undo
190 198
             'field' => 'value'
191 199
         ]);
192 200
 
193
-        if ($this->methodParameterMetadataCount === 0) {
201
+        if ($this->methodParameterMetadataCount === 0)
202
+        {
194 203
             $this->expectNotToPerformAssertions();
195 204
         }
196 205
 
197
-        foreach ($this->getMethodParameterMetadata(AnnotatedClass::class, 'method', 'parameter') as $actual) {
206
+        foreach ($this->getMethodParameterMetadata(AnnotatedClass::class, 'method', 'parameter') as $actual)
207
+        {
198 208
             $this->assertEquals($expected, $actual);
199 209
         }
200 210
     }
@@ -212,11 +222,13 @@  discard block
 block discarded – undo
212 222
             'field' => 'value'
213 223
         ]);
214 224
 
215
-        if ($this->functionMetadataCount === 0) {
225
+        if ($this->functionMetadataCount === 0)
226
+        {
216 227
             $this->expectNotToPerformAssertions();
217 228
         }
218 229
 
219
-        foreach ($this->getFunctionMetadata($this->fixture('annotated_function')) as $actual) {
230
+        foreach ($this->getFunctionMetadata($this->fixture('annotated_function')) as $actual)
231
+        {
220 232
             $this->assertEquals($expected, $actual);
221 233
         }
222 234
     }
@@ -234,12 +246,14 @@  discard block
 block discarded – undo
234 246
             'field' => 'value'
235 247
         ]);
236 248
 
237
-        if ($this->functionParameterMetadataCount === 0) {
249
+        if ($this->functionParameterMetadataCount === 0)
250
+        {
238 251
             $this->expectNotToPerformAssertions();
239 252
         }
240 253
 
241 254
         $function = $this->fixture('annotated_function');
242
-        foreach ($this->getFunctionParameterMetadata($function, 'parameter') as $actual) {
255
+        foreach ($this->getFunctionParameterMetadata($function, 'parameter') as $actual)
256
+        {
243 257
             $this->assertEquals($expected, $actual);
244 258
         }
245 259
     }
Please login to merge, or discard this patch.