@@ -27,21 +27,6 @@ Copy the PHPUnit configuration into the projects root folder
27
27
[ vfsStream] ( https://github.com/mikey179/vfsStream ) is a stream wrapper for a virtual file system that may be helpful
28
28
in unit tests to mock the real file system.
29
29
30
- ### Codeception (optional)
31
- [ Codeception] ( http://codeception.com/ ) is a BDD style testing frameworks for PHP. It can be used for unit, functional
32
- and integration tests.
33
-
34
- The [ Codeception module for Jasny MVC] ( https://github.com/jasny/codeception-module ) allows you to run tests for
35
- applications that use Jasny MVC.
36
-
37
- Codeception isn't installed by default. It can be installed through composer.
38
-
39
- composer require --dev codeception/codeception jasny/codeception-module
40
-
41
- ### PHP Cloc
42
-
43
- [ phpcloc] ( https://github.com/appzcoder/phpcloc ) Count the lines of codes in the project as PHP implementation of cloc.
44
-
45
30
### PHP CodeSniffer
46
31
[ phpcs] ( https://github.com/squizlabs/PHP_CodeSniffer ) tokenises PHP files and detects violations of a defined set of
47
32
coding standards. It is an essential development tool that ensures your code remains clean and consistent.
@@ -65,7 +50,6 @@ Composer can be configured to run all tests
65
50
"scripts": {
66
51
"test": [
67
52
"phpunit",
68
- "phpcloc cloc src",
69
53
"phpstan analyse",
70
54
"phpcs -p src"
71
55
]
@@ -83,14 +67,14 @@ To run all tests do
83
67
Open source projects should all of these quality assurance services. Closed source project may use a single service
84
68
to both run tests and code quality checks in order to save costs.
85
69
86
- ### Travis
87
- [ Travis CI ] ( https://travis-ci.org ) will run all unit tests on each pull-request and push to the master branch.
70
+ ### GitHub actions
71
+ [ GitHub actions ] ( https://github.com/features/actions ) will run all unit tests on each pull-request and push to the master branch.
88
72
89
- Copy the Travis CI configuration file from the php-code-quality directory.
73
+ Copy the .github folder from the php-code-quality directory.
90
74
91
- cp vendor/jasny/php-code-quality/travis.yml.dist .travis.yml
75
+ cp -r vendor/jasny/php-code-quality/.github .
92
76
93
77
### Scrutinizer
94
78
[ Scrutinizer] ( https://scrutinizer-ci.com/ ) tests code quality using PHP CodeSniffer, PHPStan and a custom analysis
95
- tool from Scrutinizer. It also collects tests coverage results from Travis CI .
79
+ tool from Scrutinizer. It also collects tests coverage results.
96
80
0 commit comments