File tree 3 files changed +48
-2
lines changed
3 files changed +48
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Internals
2
+
3
+ ## Unit testing
4
+
5
+ The package is tested with [ PHPUnit] ( https://phpunit.de/ ) . To run tests:
6
+
7
+ ``` shell
8
+ ./vendor/bin/phpunit
9
+ ```
10
+
11
+ ## Mutation testing
12
+
13
+ The package tests are checked with [ Infection] ( https://infection.github.io/ ) mutation framework with
14
+ [ Infection Static Analysis Plugin] ( https://github.com/Roave/infection-static-analysis-plugin ) . To run it:
15
+
16
+ ``` shell
17
+ ./vendor/bin/roave-infection-static-analysis-plugin
18
+ ```
19
+
20
+ ## Static analysis
21
+
22
+ The code is statically analyzed with [ Psalm] ( https://psalm.dev/ ) . To run static analysis:
23
+
24
+ ``` shell
25
+ ./vendor/bin/psalm
26
+ ```
27
+
28
+ ## Rector
29
+
30
+ Use [ Rector] ( https://github.com/rectorphp/rector ) to make codebase follow some specific rules or
31
+ use either newest or any specific version of PHP:
32
+
33
+ ``` shell
34
+ ./vendor/bin/rector
35
+ ```
36
+
37
+ ## Dependencies
38
+
39
+ Use [ ComposerRequireChecker] ( https://github.com/maglnet/ComposerRequireChecker ) to detect transitive
40
+ [ Composer] ( https://getcomposer.org/ ) dependencies.
41
+
42
+ To run the checker, execute the following command:
43
+
44
+ ``` shell
45
+ ./vendor/bin/composer-require-checker
46
+ ```
Original file line number Diff line number Diff line change 3
3
errorLevel =" 1"
4
4
findUnusedBaselineEntry =" true"
5
5
findUnusedCode =" false"
6
- xmlns : xsi =" http ://www.w3.org/2001/XMLSchema-instance"
6
+ xmlns : xsi =" https ://www.w3.org/2001/XMLSchema-instance"
7
7
xmlns =" https://getpsalm.org/schema/config"
8
8
xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
9
9
>
Original file line number Diff line number Diff line change 3
3
errorLevel =" 1"
4
4
findUnusedBaselineEntry =" true"
5
5
findUnusedCode =" false"
6
- xmlns : xsi =" http ://www.w3.org/2001/XMLSchema-instance"
6
+ xmlns : xsi =" https ://www.w3.org/2001/XMLSchema-instance"
7
7
xmlns =" https://getpsalm.org/schema/config"
8
8
xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
9
9
>
You can’t perform that action at this time.
0 commit comments