forked from FiveLab/CiRules
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProhibitedDocCommentsSniffTest.php
More file actions
58 lines (51 loc) · 2.12 KB
/
Copy pathProhibitedDocCommentsSniffTest.php
File metadata and controls
58 lines (51 loc) · 2.12 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
declare(strict_types = 1);
/*
* 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
*/
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;
use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\ProhibitedDocCommentsSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;
class ProhibitedDocCommentsSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
return ProhibitedDocCommentsSniff::class;
}
public static function provideDataSet(): array
{
return [
'success' => [
__DIR__.'/Resources/prohibited-doc-comments/success.php',
],
'wrong' => [
__DIR__.'/Resources/prohibited-doc-comments/wrong.php',
[
'message' => 'PHPDoc must contain at least one meta tag like @param, @return, etc.',
'source' => 'FiveLab.Commenting.ProhibitedDocComments.PhpDocNotAllowed',
],
[
'message' => 'PHPDoc must contain at least one meta tag like @param, @return, etc.',
'source' => 'FiveLab.Commenting.ProhibitedDocComments.PhpDocNotAllowed',
],
[
'message' => 'PHPDoc must contain at least one meta tag like @param, @return, etc.',
'source' => 'FiveLab.Commenting.ProhibitedDocComments.PhpDocNotAllowed',
],
[
'message' => 'PHPDoc must contain at least one meta tag like @param, @return, etc.',
'source' => 'FiveLab.Commenting.ProhibitedDocComments.PhpDocNotAllowed',
],
[
'message' => 'PHPDoc must contain at least one meta tag like @param, @return, etc.',
'source' => 'FiveLab.Commenting.ProhibitedDocComments.PhpDocNotAllowed',
],
],
];
}
}