forked from FiveLab/CiRules
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWhiteSpaceAfterCommentStartSniffTest.php
More file actions
42 lines (35 loc) · 1.2 KB
/
Copy pathWhiteSpaceAfterCommentStartSniffTest.php
File metadata and controls
42 lines (35 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
* This file is part of the FiveLab CiRules package
*
* (c) FiveLab
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code
*/
declare(strict_types = 1);
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;
use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\WhiteSpaceAfterCommentStartSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;
class WhiteSpaceAfterCommentStartSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
return WhiteSpaceAfterCommentStartSniff::class;
}
public static function provideDataSet(): array
{
return [
'success' => [
__DIR__.'/Resources/white-space-after-comment-start/success.php',
],
'wrong' => [
__DIR__.'/Resources/white-space-after-comment-start/wrong.php',
[
'message' => 'Must be one space after open comment.',
'source' => 'FiveLab.Commenting.WhiteSpaceAfterCommentStart.WrongFormat',
],
],
];
}
}