Commit c905c40
Move test directory out of package path (#168)
* Move tests directory to top level
* Modify tests directory path in other files
* Move fixtures back adjacent to tests
* Exclude vendor from phpcs
* Tests: fix composer autoload
1. Make the namespace of the `VariableAnalysisTest` file reflect the path the file.
2. Add an `autoload-dev` section to the `composer.json`
* The unit tests are not shipped in the distribution package, so they are only available in a `dev` environment, which is exactly what `autoload-dev` is targetting.
* Setting the `tests` directory as a secondary path for PSR4 autoload should fix compatibility with Composer 2.
* Rename tests/Sniffs to tests/VariableAnalysisSniff
* Rename tests to Tests
* Rename Tests directory paths in files
* Rename test namespace to match new path
* Update .gitattributes from tests to Tests
Co-Authored-By: Juliette <663378+jrfnl@users.noreply.github.com>
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com>1 parent 144e1f2 commit c905c40
File tree
42 files changed
+25
-20
lines changed- Tests
- VariableAnalysisSniff
- fixtures
- VariableAnalysis/Tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+25
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments