mirror of
https://github.com/wallabag/wallabag.git
synced 2024-05-20 01:58:06 +00:00
Use PHPUnit directly
This commit is contained in:
parent
0e7b4641a1
commit
15d5eb5e6a
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"
|
- name: "Generate test cache for PHPStan"
|
||||||
run: "php bin/console cache:clear --env=test"
|
run: "php bin/console cache:clear --env=test"
|
||||||
|
|
||||||
- name: "Install PHPUnit for PHPStan"
|
|
||||||
run: "php bin/simple-phpunit install"
|
|
||||||
|
|
||||||
- name: "Run PHPStan"
|
- name: "Run PHPStan"
|
||||||
run: "php bin/phpstan analyse --no-progress --error-format=checkstyle | cs2pr"
|
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"
|
run: "make fixtures"
|
||||||
|
|
||||||
- name: "Run PHPUnit"
|
- name: "Run PHPUnit"
|
||||||
run: "php bin/simple-phpunit -v"
|
run: "php bin/phpunit -v"
|
||||||
|
|
||||||
phpunit_no_prefix:
|
phpunit_no_prefix:
|
||||||
name: "PHP ${{ matrix.php }} using ${{ matrix.database }} without prefix"
|
name: "PHP ${{ matrix.php }} using ${{ matrix.database }} without prefix"
|
||||||
|
@ -151,4 +151,4 @@ jobs:
|
||||||
run: "make fixtures"
|
run: "make fixtures"
|
||||||
|
|
||||||
- name: "Run PHPUnit"
|
- 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
|
php bin/console doctrine:fixtures:load --no-interaction --env=test
|
||||||
|
|
||||||
test: prepare fixtures ## Launch wallabag testsuite
|
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`).
|
release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
|
||||||
ifndef VERSION
|
ifndef VERSION
|
||||||
|
|
|
@ -173,6 +173,7 @@
|
||||||
"phpstan/phpstan-doctrine": "^1.3",
|
"phpstan/phpstan-doctrine": "^1.3",
|
||||||
"phpstan/phpstan-phpunit": "^1.1",
|
"phpstan/phpstan-phpunit": "^1.1",
|
||||||
"phpstan/phpstan-symfony": "^1.2",
|
"phpstan/phpstan-symfony": "^1.2",
|
||||||
|
"phpunit/phpunit": "^9.6",
|
||||||
"symfony/browser-kit": "^4.4",
|
"symfony/browser-kit": "^4.4",
|
||||||
"symfony/css-selector": "^4.4",
|
"symfony/css-selector": "^4.4",
|
||||||
"symfony/debug-bundle": "^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:
|
doctrine:
|
||||||
objectManagerLoader: tests/object-manager.php
|
objectManagerLoader: tests/object-manager.php
|
||||||
|
|
||||||
bootstrapFiles:
|
|
||||||
- vendor/bin/.phpunit/phpunit-8.5-0/vendor/autoload.php
|
|
||||||
|
|
||||||
inferPrivatePropertyTypeFromConstructor: true
|
inferPrivatePropertyTypeFromConstructor: true
|
||||||
|
|
|
@ -34,4 +34,8 @@
|
||||||
<extensions>
|
<extensions>
|
||||||
<extension class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" />
|
<extension class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" />
|
||||||
</extensions>
|
</extensions>
|
||||||
|
|
||||||
|
<listeners>
|
||||||
|
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
|
||||||
|
</listeners>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
Loading…
Reference in a new issue