File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed
dev/tests/integration/testsuite/Magento/Framework/Code
lib/internal/Magento/Framework/Interception/Code/Generator Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -187,13 +187,11 @@ public function testGenerateClassExtensionAttributesInterfaceFactoryWithNamespac
187
187
$ this ->assertEquals ($ expectedContent , $ content );
188
188
}
189
189
190
+ /**
191
+ * @requires PHP 7.1
192
+ */
190
193
public function testGenerateClassProxyWithNamespace71 ()
191
194
{
192
- if (!$ this ->shouldRun71 ()) {
193
- $ this ->assertTrue (true );
194
- return ;
195
- }
196
-
197
195
$ proxyClassName = self ::CLASS_NAME_WITH_NAMESPACE_71 . '\Proxy ' ;
198
196
$ result = false ;
199
197
$ generatorResult = $ this ->_generator ->generateClass ($ proxyClassName );
@@ -219,13 +217,11 @@ public function testGenerateClassProxyWithNamespace71()
219
217
}
220
218
}
221
219
220
+ /**
221
+ * @requires PHP 7.1
222
+ */
222
223
public function testGenerateClassInterceptorWithNamespace71 ()
223
224
{
224
- if (!$ this ->shouldRun71 ()) {
225
- $ this ->assertTrue (true );
226
- return ;
227
- }
228
-
229
225
$ interceptorClassName = self ::CLASS_NAME_WITH_NAMESPACE_71 . '\Interceptor ' ;
230
226
$ result = false ;
231
227
$ generatorResult = $ this ->_generator ->generateClass ($ interceptorClassName );
@@ -246,12 +242,4 @@ public function testGenerateClassInterceptorWithNamespace71()
246
242
$ this ->assertEquals ($ expectedContent , $ content );
247
243
}
248
244
}
249
-
250
- /**
251
- * @return bool
252
- */
253
- private function shouldRun71 ():bool
254
- {
255
- return version_compare (phpversion (), '7.1.0 ' , '>= ' );
256
- }
257
245
}
Original file line number Diff line number Diff line change 8
8
9
9
/**
10
10
* Class Interceptor
11
- ˚ *
11
+ *
12
12
* @package Magento\Framework\Interception\Code\Generator
13
13
*/
14
14
class Interceptor extends \Magento \Framework \Code \Generator \EntityAbstract
You can’t perform that action at this time.
0 commit comments