mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-26 09:30:30 +00:00
Use PHPUnit directly
This commit is contained in:
parent
0e7b4641a1
commit
15d5eb5e6a
7 changed files with 1615 additions and 10 deletions
3
.github/workflows/coding-standards.yml
vendored
3
.github/workflows/coding-standards.yml
vendored
|
@ -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"
|
||||
|
||||
|
|
4
.github/workflows/continuous-integration.yml
vendored
4
.github/workflows/continuous-integration.yml
vendored
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
1608
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -13,7 +13,4 @@ parameters:
|
|||
doctrine:
|
||||
objectManagerLoader: tests/object-manager.php
|
||||
|
||||
bootstrapFiles:
|
||||
- vendor/bin/.phpunit/phpunit-8.5-0/vendor/autoload.php
|
||||
|
||||
inferPrivatePropertyTypeFromConstructor: true
|
||||
|
|
|
@ -34,4 +34,8 @@
|
|||
<extensions>
|
||||
<extension class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" />
|
||||
</extensions>
|
||||
|
||||
<listeners>
|
||||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
|
||||
</listeners>
|
||||
</phpunit>
|
||||
|
|
Loading…
Reference in a new issue