Skip to content

Commit 4f2e7a1

Browse files
committed
Move phpunit.xml.dist to root directory
1 parent 043552d commit 4f2e7a1

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
dependency-versions: "${{ matrix.deps }}"
8989

9090
- name: "Run PHPUnit"
91-
run: "vendor/bin/phpunit -c tests --coverage-clover coverage.xml"
91+
run: "vendor/bin/phpunit --coverage-clover coverage.xml"
9292

9393
- name: "Upload coverage file"
9494
uses: "actions/upload-artifact@v4"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ bin
33
vendor
44
composer.lock
55
phpstan.neon
6-
tests/.phpunit.result.cache
6+
.phpunit.result.cache
77
tests/phpunit.xml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ To set up and run the tests, follow these steps:
100100
- From the project root, run `docker compose up -d` to start containers in daemon mode
101101
- Enter the container via `docker compose exec php bash` (you are now in the root directory: `/var/www`)
102102
- Install Composer dependencies via `composer install`
103-
- Run the tests: `vendor/bin/phpunit -c tests/`
103+
- Run the tests: `vendor/bin/phpunit`
104104

105105
### Running the Example
106106

tests/phpunit.xml.dist renamed to phpunit.xml.dist

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
bootstrap="./bootstrap.php"
11+
bootstrap="./tests/bootstrap.php"
1212
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
1313
>
1414
<coverage>
@@ -18,52 +18,52 @@
1818
</coverage>
1919
<testsuites>
2020
<testsuite name="Translatable Extension">
21-
<directory suffix="Test.php">./Gedmo/Translatable/</directory>
21+
<directory suffix="Test.php">./tests/Gedmo/Translatable/</directory>
2222
</testsuite>
2323
<testsuite name="Sluggable Extension">
24-
<directory suffix="Test.php">./Gedmo/Sluggable/</directory>
24+
<directory suffix="Test.php">./tests/Gedmo/Sluggable/</directory>
2525
</testsuite>
2626
<testsuite name="Sortable Extension">
27-
<directory suffix="Test.php">./Gedmo/Sortable/</directory>
27+
<directory suffix="Test.php">./tests/Gedmo/Sortable/</directory>
2828
</testsuite>
2929
<testsuite name="Tree Extension">
30-
<directory suffix="Test.php">./Gedmo/Tree/</directory>
30+
<directory suffix="Test.php">./tests/Gedmo/Tree/</directory>
3131
</testsuite>
3232
<testsuite name="Timestampable Extension">
33-
<directory suffix="Test.php">./Gedmo/Timestampable/</directory>
33+
<directory suffix="Test.php">./tests/Gedmo/Timestampable/</directory>
3434
</testsuite>
3535
<testsuite name="Blameable Extension">
36-
<directory suffix="Test.php">./Gedmo/Blameable/</directory>
36+
<directory suffix="Test.php">./tests/Gedmo/Blameable/</directory>
3737
</testsuite>
3838
<testsuite name="IpTraceable Extension">
39-
<directory suffix="Test.php">./Gedmo/IpTraceable/</directory>
39+
<directory suffix="Test.php">./tests/Gedmo/IpTraceable/</directory>
4040
</testsuite>
4141
<testsuite name="Mapping Extension">
42-
<directory suffix="Test.php">./Gedmo/Mapping/</directory>
42+
<directory suffix="Test.php">./tests/Gedmo/Mapping/</directory>
4343
</testsuite>
4444
<testsuite name="Loggable Extension">
45-
<directory suffix="Test.php">./Gedmo/Loggable/</directory>
45+
<directory suffix="Test.php">./tests/Gedmo/Loggable/</directory>
4646
</testsuite>
4747
<testsuite name="Sortable Extension">
48-
<directory suffix="Test.php">./Gedmo/Sortable/</directory>
48+
<directory suffix="Test.php">./tests/Gedmo/Sortable/</directory>
4949
</testsuite>
5050
<testsuite name="Object wrappers">
51-
<directory suffix="Test.php">./Gedmo/Wrapper/</directory>
51+
<directory suffix="Test.php">./tests/Gedmo/Wrapper/</directory>
5252
</testsuite>
5353
<testsuite name="Translator extension">
54-
<directory suffix="Test.php">./Gedmo/Translator/</directory>
54+
<directory suffix="Test.php">./tests/Gedmo/Translator/</directory>
5555
</testsuite>
5656
<testsuite name="SoftDeleteable Extension">
57-
<directory suffix="Test.php">./Gedmo/SoftDeleteable/</directory>
57+
<directory suffix="Test.php">./tests/Gedmo/SoftDeleteable/</directory>
5858
</testsuite>
5959
<testsuite name="Uploadable Extension">
60-
<directory suffix="Test.php">./Gedmo/Uploadable/</directory>
60+
<directory suffix="Test.php">./tests/Gedmo/Uploadable/</directory>
6161
</testsuite>
6262
<testsuite name="ReferenceIntegrity Extension">
63-
<directory suffix="Test.php">./Gedmo/ReferenceIntegrity/</directory>
63+
<directory suffix="Test.php">./tests/Gedmo/ReferenceIntegrity/</directory>
6464
</testsuite>
6565
<testsuite name="References Extension">
66-
<directory suffix="Test.php">./Gedmo/References/</directory>
66+
<directory suffix="Test.php">./tests/Gedmo/References/</directory>
6767
</testsuite>
6868
</testsuites>
6969
<php>

0 commit comments

Comments
 (0)