File tree 4 files changed +16
-10
lines changed
SymfonyCustom/Tests/NamingConventions
4 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
.idea /
2
2
composer.phar
3
+ coverage /
3
4
vendor /
Original file line number Diff line number Diff line change @@ -21,12 +21,8 @@ class ValidFileNameUnitTest extends AbstractSniffUnitTest
21
21
protected function getErrorList ($ filename = '' )
22
22
{
23
23
switch ($ filename ) {
24
- case 'ValidFileNameUnitTest.inc ' :
25
- return [];
26
24
case 'ValidFileNameUnitTest.Invalid.inc ' :
27
- return [
28
- 1 => 1 ,
29
- ];
25
+ return [1 => 1 ];
30
26
default :
31
27
return [];
32
28
}
Original file line number Diff line number Diff line change 39
39
</exec >
40
40
</target >
41
41
42
+ <target name =" coverage" depends =" symlink-cs" description =" Run coverage with PHPUnit" >
43
+ <exec executable =" ${ phpunit.bin } " failonerror =" true" >
44
+ <arg value =" --verbose" />
45
+ <arg value =" --group=SymfonyCustom" />
46
+ <arg value =" ${ phpcs.dir } /tests/AllTests.php" />
47
+ <arg value =" --coverage-html=coverage" />
48
+ </exec >
49
+ </target >
50
+
42
51
<target name =" phpcs" depends =" symlink-cs" description =" Find coding standard violations using PHP Code Sniffer" >
43
52
<exec executable =" ${ phpcs.bin } " failonerror =" true" >
44
53
<arg value =" --standard=SymfonyCustom" />
Original file line number Diff line number Diff line change 10
10
stopOnFailure =" false"
11
11
bootstrap =" ./bootstrap.php"
12
12
>
13
- <testsuites >
14
- <testsuite name = " Symfony Coding Standard Test Suite " >
15
- <file >./vendor/squizlabs/php_codesniffer/tests /Standards/AllSniffs.php</ file >
16
- </testsuite >
17
- </testsuites >
13
+ <filter >
14
+ <whitelist >
15
+ <directory >./vendor/squizlabs/php_codesniffer/src /Standards/SymfonyCustom</ directory >
16
+ </whitelist >
17
+ </filter >
18
18
</phpunit >
You can’t perform that action at this time.
0 commit comments