Use PHPUnit directly

This commit is contained in:
Yassine Guedidi 2024-01-03 23:46:08 +01:00
parent 0e7b4641a1
commit 15d5eb5e6a
7 changed files with 1615 additions and 10 deletions

View File

@ -47,9 +47,6 @@ jobs:
- name: "Generate test cache for PHPStan"
run: "php bin/console cache:clear --env=test"
- name: "Install PHPUnit for PHPStan"
run: "php bin/simple-phpunit install"
- name: "Run PHPStan"
run: "php bin/phpstan analyse --no-progress --error-format=checkstyle | cs2pr"

View File

@ -80,7 +80,7 @@ jobs:
run: "make fixtures"
- name: "Run PHPUnit"
run: "php bin/simple-phpunit -v"
run: "php bin/phpunit -v"
phpunit_no_prefix:
name: "PHP ${{ matrix.php }} using ${{ matrix.database }} without prefix"
@ -151,4 +151,4 @@ jobs:
run: "make fixtures"
- name: "Run PHPUnit"
run: "php bin/simple-phpunit -v"
run: "php bin/phpunit -v"

View File

@ -46,7 +46,7 @@ fixtures: ## Load fixtures into database
php bin/console doctrine:fixtures:load --no-interaction --env=test
test: prepare fixtures ## Launch wallabag testsuite
XDEBUG_MODE=off php -dmemory_limit=-1 bin/simple-phpunit -v
XDEBUG_MODE=off php -dmemory_limit=-1 bin/phpunit -v
release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
ifndef VERSION

View File

@ -173,6 +173,7 @@
"phpstan/phpstan-doctrine": "^1.3",
"phpstan/phpstan-phpunit": "^1.1",
"phpstan/phpstan-symfony": "^1.2",
"phpunit/phpunit": "^9.6",
"symfony/browser-kit": "^4.4",
"symfony/css-selector": "^4.4",
"symfony/debug-bundle": "^4.4",

1608
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,4 @@ parameters:
doctrine:
objectManagerLoader: tests/object-manager.php
bootstrapFiles:
- vendor/bin/.phpunit/phpunit-8.5-0/vendor/autoload.php
inferPrivatePropertyTypeFromConstructor: true

View File

@ -34,4 +34,8 @@
<extensions>
<extension class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" />
</extensions>
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>
</phpunit>