We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f47026 commit 46feb53Copy full SHA for 46feb53
.gitattributes
@@ -1,10 +1,12 @@
1
*.php text eol=lf
2
3
tests export-ignore
4
+tmp export-ignore
5
.coveralls.yml export-ignore
6
.gitattributes export-ignore
7
.gitignore export-ignore
8
.travis.yml export-ignore
-build.xml export-ignore
9
+Makefile export-ignore
10
phpcs.xml export-ignore
11
phpstan.neon export-ignore
12
+phpunit.xml export-ignore
.github/workflows/build.yml
@@ -44,7 +44,7 @@ jobs:
44
45
46
- name: "Lint"
47
- run: "vendor/bin/phing lint"
+ run: "make lint"
48
49
coding-standards:
50
name: "Coding Standard"
@@ -68,10 +68,10 @@ jobs:
68
run: "composer install --no-interaction --no-progress --no-suggest"
69
70
71
72
73
- name: "Coding Standard"
74
- run: "vendor/bin/phing cs"
+ run: "make cs"
75
76
tests:
77
name: "Tests"
@@ -116,7 +116,7 @@ jobs:
116
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
117
118
- name: "Tests"
119
- run: "vendor/bin/phing tests"
+ run: "make tests"
120
121
static-analysis:
122
name: "PHPStan"
@@ -160,4 +160,4 @@ jobs:
160
161
162
- name: "PHPStan"
163
- run: "vendor/bin/phing phpstan"
+ run: "make phpstan"
.gitignore
@@ -1,3 +1,4 @@
/tests/tmp
/vendor
composer.lock
+.phpunit.result.cache
Makefile
@@ -0,0 +1,23 @@
+.PHONY: check
+check: lint cs tests phpstan
+
+.PHONY: tests
+tests:
+ php vendor/bin/phpunit
+.PHONY: lint
+lint:
+ php vendor/bin/parallel-lint --colors \
+ src tests
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
build.xml
composer.json
@@ -21,7 +21,6 @@
"symfony/framework-bundle": "<3.0"
},
"require-dev": {
24
- "phing/phing": "^2.16.3",
25
"php-parallel-lint/php-parallel-lint": "^1.2",
26
"phpstan/phpstan-phpunit": "^0.12.16",
27
"phpstan/phpstan-strict-rules": "^0.12.5",
@@ -35,8 +34,8 @@
35
34
36
"config": {
37
"platform": {
38
- "php": "7.4.6"
39
-},
+ "php": "7.4.6"
+},
40
"sort-packages": true
41
42
"extra": {
phpcs.xml
@@ -1,5 +1,13 @@
<?xml version="1.0"?>
<ruleset name="PHPStan PHPUnit extensions and rules">
+ <arg name="colors"/>
+ <arg name="extensions" value="php"/>
+ <arg name="encoding" value="utf-8"/>
+ <arg name="tab-width" value="4"/>
+ <arg name="cache" value="tmp/cache/phpcs"/>
+ <arg value="sp"/>
+ <file>src</file>
+ <file>tests</file>
<rule ref="build-cs/vendor/consistence-community/coding-standard/Consistence/ruleset.xml">
<exclude name="Squiz.Functions.GlobalFunction.Found"/>
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
phpunit.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ bootstrap="tests/bootstrap.php"
+ colors="true"
+ backupGlobals="false"
+ backupStaticAttributes="false"
+ beStrictAboutChangesToGlobalState="true"
+ beStrictAboutOutputDuringTests="true"
+ beStrictAboutTestsThatDoNotTestAnything="true"
+ beStrictAboutTodoAnnotatedTests="true"
+ failOnRisky="true"
+ failOnWarning="true"
+ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
+>
+ <coverage>
+ <include>
+ <directory suffix=".php">./src</directory>
+ </include>
+ <report>
+ <clover outputFile="tests/tmp/clover.xml"/>
+ <text
+ outputFile="php://stdout"
+ showUncoveredFiles="true"
+ showOnlySummary="true"
+ />
+ </report>
+ </coverage>
28
29
+ <testsuites>
30
+ <testsuite name="PHPStan for Symfony">
31
+ <directory suffix="Test.php">tests</directory>
32
+ </testsuite>
33
+ </testsuites>
+ <logging/>
+</phpunit>
tests/phpunit.xml
tmp/.gitignore
@@ -0,0 +1,3 @@
+*
+!cache
+!.*
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments