Skip to content

Commit e7fcf2d

Browse files
committed
AC-1156: Move custom eslint tests to magento-coding-standard repo
- Add strict types and phpdocs
1 parent 42a334c commit e7fcf2d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Magento2/Tests/Eslint/AbstractEslintTestCase.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,23 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento2\Tests\Eslint;
79

810
use PHPUnit\Framework\TestCase;
911

12+
/**
13+
* Abstract class AbstractEslintTestCase
14+
*
15+
* Test Eslint Rules (magento-coding-standard/eslint/rules)
16+
*/
1017
abstract class AbstractEslintTestCase extends TestCase
1118
{
19+
/**
20+
* @param string $testFile
21+
* @param array $expectedMessages
22+
*/
1223
protected function assertFileContainsError(string $testFile, array $expectedMessages)
1324
{
1425
exec(

0 commit comments

Comments
 (0)