File tree Expand file tree Collapse file tree 4 files changed +16
-10
lines changed
SymfonyCustom/Tests/NamingConventions Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 11.idea /
22composer.phar
3+ coverage /
34vendor /
Original file line number Diff line number Diff line change @@ -21,12 +21,8 @@ class ValidFileNameUnitTest extends AbstractSniffUnitTest
2121 protected function getErrorList ($ filename = '' )
2222 {
2323 switch ($ filename ) {
24- case 'ValidFileNameUnitTest.inc ' :
25- return [];
2624 case 'ValidFileNameUnitTest.Invalid.inc ' :
27- return [
28- 1 => 1 ,
29- ];
25+ return [1 => 1 ];
3026 default :
3127 return [];
3228 }
Original file line number Diff line number Diff line change 3939 </exec >
4040 </target >
4141
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+
4251 <target name =" phpcs" depends =" symlink-cs" description =" Find coding standard violations using PHP Code Sniffer" >
4352 <exec executable =" ${ phpcs.bin } " failonerror =" true" >
4453 <arg value =" --standard=SymfonyCustom" />
Original file line number Diff line number Diff line change 1010 stopOnFailure =" false"
1111 bootstrap =" ./bootstrap.php"
1212>
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 >
1818</phpunit >
You can’t perform that action at this time.
0 commit comments