Skip to content

Commit 55ae8b5

Browse files
authored
Docs folder standardization and other fixes (#98)
1 parent a80e629 commit 55ae8b5

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

docs/internals.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
```

psalm.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
errorLevel="1"
44
findUnusedBaselineEntry="true"
55
findUnusedCode="false"
6-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
77
xmlns="https://getpsalm.org/schema/config"
88
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
99
>

0 commit comments

Comments
 (0)