File tree 11 files changed +83
-144
lines changed
11 files changed +83
-144
lines changed Original file line number Diff line number Diff line change 1
1
* .php text eol =lf
2
2
3
3
tests export-ignore
4
+ tmp export-ignore
4
5
.coveralls.yml export-ignore
5
6
.gitattributes export-ignore
6
7
.gitignore export-ignore
7
8
.travis.yml export-ignore
8
- build.xml export-ignore
9
+ Makefile export-ignore
9
10
phpcs.xml export-ignore
10
11
phpstan.neon export-ignore
12
+ phpunit.xml export-ignore
Original file line number Diff line number Diff line change 44
44
45
45
46
46
- name : " Lint"
47
- run : " vendor/bin/phing lint"
47
+ run : " make lint"
48
48
49
49
coding-standards :
50
50
name : " Coding Standard"
@@ -68,10 +68,10 @@ jobs:
68
68
run : " composer install --no-interaction --no-progress --no-suggest"
69
69
70
70
- name : " Lint"
71
- run : " vendor/bin/phing lint"
71
+ run : " make lint"
72
72
73
73
- name : " Coding Standard"
74
- run : " vendor/bin/phing cs"
74
+ run : " make cs"
75
75
76
76
tests :
77
77
name : " Tests"
@@ -116,7 +116,7 @@ jobs:
116
116
run : " composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
117
117
118
118
- name : " Tests"
119
- run : " vendor/bin/phing tests"
119
+ run : " make tests"
120
120
121
121
static-analysis :
122
122
name : " PHPStan"
@@ -160,4 +160,4 @@ jobs:
160
160
run : " composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
161
161
162
162
- name : " PHPStan"
163
- run : " vendor/bin/phing phpstan"
163
+ run : " make phpstan"
Original file line number Diff line number Diff line change 1
1
/tests /tmp
2
2
/vendor
3
3
composer.lock
4
+ .phpunit.result.cache
Original file line number Diff line number Diff line change
1
+ .PHONY : check
2
+ check : lint cs tests phpstan
3
+
4
+ .PHONY : tests
5
+ tests :
6
+ php vendor/bin/phpunit
7
+
8
+ .PHONY : lint
9
+ lint :
10
+ php vendor/bin/parallel-lint --colors \
11
+ src tests
12
+
13
+ .PHONY : cs
14
+ cs :
15
+ composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
16
+
17
+ .PHONY : cs-fix
18
+ cs-fix :
19
+ php build-cs/vendor/bin/phpcbf
20
+
21
+ .PHONY : phpstan
22
+ phpstan :
23
+ php vendor/bin/phpstan analyse -l 8 -c phpstan.neon src tests
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 21
21
"symfony/framework-bundle" : " <3.0"
22
22
},
23
23
"require-dev" : {
24
- "phing/phing" : " ^2.16.3" ,
25
24
"php-parallel-lint/php-parallel-lint" : " ^1.2" ,
26
25
"phpstan/phpstan-phpunit" : " ^0.12.16" ,
27
26
"phpstan/phpstan-strict-rules" : " ^0.12.5" ,
35
34
},
36
35
"config" : {
37
36
"platform" : {
38
- "php" : " 7.4.6"
39
- },
37
+ "php" : " 7.4.6"
38
+ },
40
39
"sort-packages" : true
41
40
},
42
41
"extra" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<ruleset name =" PHPStan PHPUnit extensions and rules" >
3
+ <arg name =" colors" />
4
+ <arg name =" extensions" value =" php" />
5
+ <arg name =" encoding" value =" utf-8" />
6
+ <arg name =" tab-width" value =" 4" />
7
+ <arg name =" cache" value =" tmp/cache/phpcs" />
8
+ <arg value =" sp" />
9
+ <file >src</file >
10
+ <file >tests</file >
3
11
<rule ref =" build-cs/vendor/consistence-community/coding-standard/Consistence/ruleset.xml" >
4
12
<exclude name =" Squiz.Functions.GlobalFunction.Found" />
5
13
<exclude name =" SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword" />
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ bootstrap =" tests/bootstrap.php"
4
+ colors =" true"
5
+ backupGlobals =" false"
6
+ backupStaticAttributes =" false"
7
+ beStrictAboutChangesToGlobalState =" true"
8
+ beStrictAboutOutputDuringTests =" true"
9
+ beStrictAboutTestsThatDoNotTestAnything =" true"
10
+ beStrictAboutTodoAnnotatedTests =" true"
11
+ failOnRisky =" true"
12
+ failOnWarning =" true"
13
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
14
+ >
15
+ <coverage >
16
+ <include >
17
+ <directory suffix =" .php" >./src</directory >
18
+ </include >
19
+ <report >
20
+ <clover outputFile =" tests/tmp/clover.xml" />
21
+ <text
22
+ outputFile =" php://stdout"
23
+ showUncoveredFiles =" true"
24
+ showOnlySummary =" true"
25
+ />
26
+ </report >
27
+ </coverage >
28
+
29
+ <testsuites >
30
+ <testsuite name =" PHPStan for Symfony" >
31
+ <directory suffix =" Test.php" >tests</directory >
32
+ </testsuite >
33
+ </testsuites >
34
+
35
+ <logging />
36
+ </phpunit >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ *
2
+ ! cache
3
+ ! . *
Original file line number Diff line number Diff line change
1
+ *
2
+ ! . *
You can’t perform that action at this time.
0 commit comments