Skip to content

Commit 108e0bb

Browse files
committed
Run phpunit directly
1 parent 242ff15 commit 108e0bb

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

.evergreen/run-tests.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,30 +83,30 @@ export MONGODB_MULTI_MONGOS_LB_URI="${MONGODB_MULTI_MONGOS_LB_URI}"
8383
# Run the tests, and store the results in a junit result file
8484
case "$TESTS" in
8585
atlas)
86-
php vendor/bin/simple-phpunit $PHPUNIT_OPTS --group atlas
86+
php vendor/bin/phpunit $PHPUNIT_OPTS --group atlas
8787
;;
8888

8989
atlas-data-lake)
90-
php vendor/bin/simple-phpunit $PHPUNIT_OPTS --group atlas-data-lake
90+
php vendor/bin/phpunit $PHPUNIT_OPTS --group atlas-data-lake
9191
;;
9292

9393
csfle)
94-
php vendor/bin/simple-phpunit $PHPUNIT_OPTS --group csfle
94+
php vendor/bin/phpunit $PHPUNIT_OPTS --group csfle
9595
;;
9696

9797
csfle-without-aws-creds)
98-
php vendor/bin/simple-phpunit $PHPUNIT_OPTS --group csfle-without-aws-creds
98+
php vendor/bin/phpunit $PHPUNIT_OPTS --group csfle-without-aws-creds
9999
;;
100100

101101
versioned-api)
102-
php vendor/bin/simple-phpunit $PHPUNIT_OPTS --group versioned-api
102+
php vendor/bin/phpunit $PHPUNIT_OPTS --group versioned-api
103103
;;
104104

105105
serverless)
106-
php vendor/bin/simple-phpunit $PHPUNIT_OPTS --group serverless
106+
php vendor/bin/phpunit $PHPUNIT_OPTS --group serverless
107107
;;
108108

109109
*)
110-
php vendor/bin/simple-phpunit $PHPUNIT_OPTS
110+
php vendor/bin/phpunit $PHPUNIT_OPTS
111111
;;
112112
esac

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
php-ini-values: "zend.assertions=1"
7878

7979
- name: "Run PHPUnit"
80-
run: "vendor/bin/simple-phpunit -v"
80+
run: "vendor/bin/phpunit -v"
8181
env:
8282
SYMFONY_DEPRECATIONS_HELPER: 999999
8383
MONGODB_URI: ${{ steps.setup-mongodb.outputs.cluster-uri }}

CONTRIBUTING.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ credentials in the connection string (i.e. `MONGODB_URI`) or set the
4343
Note that `MONGODB_USERNAME` and `MONGODB_PASSWORD` will override any
4444
credentials present in the connection string.
4545

46-
By default, the `simple-phpunit` binary chooses the correct PHPUnit version for
47-
the PHP version you are running. To run tests against a specific PHPUnit
48-
version, use the `SYMFONY_PHPUNIT_VERSION` environment variable:
46+
To run tests use the `phpunit` executable installed by Composer:
4947

5048
```console
51-
$ SYMFONY_PHPUNIT_VERSION=8.5 vendor/bin/simple-phpunit
49+
$ vendor/bin/phpunit
5250
```
5351

5452
### Environment Variables

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"fix:cs": "phpcbf",
5252
"fix:psalm:baseline": "psalm --set-baseline=psalm-baseline.xml",
5353
"fix:rector": "rector process --ansi",
54-
"test": "simple-phpunit"
54+
"test": "phpunit"
5555
},
5656
"extra": {
5757
"branch-alias": {

0 commit comments

Comments
 (0)