Skip to content

Commit 488b697

Browse files
authored
Merge pull request #4 from rayanlevert/feature/phpunit
Removing Codeception to replace it with PHPUnit
2 parents 4094e6b + 76dd72b commit 488b697

29 files changed

+548
-2210
lines changed
File renamed without changes.

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ jobs:
6565

6666
- name: Setup Tests
6767
run: |
68-
cp tests/_ci/.env.default .env
69-
vendor/bin/codecept build
68+
cp .env.default .env
7069
7170
- name: Install Mailpit and create a symbolic link to sendmail command
7271
run: |
@@ -75,7 +74,7 @@ jobs:
7574
7675
- name: Run test suites
7776
if: success()
78-
run: vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml
77+
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover coverage-${{ matrix.php-versions }}.xml
7978

8079
- name: Upload coverage to Codecov
8180
if: success()

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
composer.phar
21
/vendor/
32
.env
4-
5-
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
6-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
7-
# composer.lock
3+
tests/fixtures/views/mail/*.volt.php
4+
.phpunit.cache

codeception.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@
3636
"require-dev": {
3737
"phalcon/ide-stubs": "^5.9.3",
3838
"vlucas/phpdotenv": "^5.5",
39-
"codeception/codeception": "^5.0",
40-
"codeception/module-asserts": "^2.0",
4139
"phpstan/phpstan": "^1.10",
42-
"squizlabs/php_codesniffer": "^3.7"
40+
"squizlabs/php_codesniffer": "^3.7",
41+
"phpunit/phpunit": "^10.5"
4342
},
4443
"config": {
4544
"platform": {
@@ -53,8 +52,7 @@
5352
},
5453
"autoload-dev": {
5554
"psr-4": {
56-
"Phalcon\\Incubator\\Mailer\\Tests\\Unit\\": "tests/unit/",
57-
"Phalcon\\Incubator\\Mailer\\Tests\\Functional\\": "tests/functional/"
55+
"Phalcon\\Incubator\\Mailer\\Tests\\": "tests/"
5856
}
5957
},
6058
"minimum-stability": "dev",

0 commit comments

Comments
 (0)