shlinkio / shlink-test-utils
Testing utils for Shlink
Installs: 36 845
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- php: ^8.2
- doctrine/data-fixtures: ^1.6
- doctrine/orm: ^3.0 || ^2.18
- fig/http-message-util: ^1.1
- guzzlehttp/guzzle: ^7.8
- phpunit/php-code-coverage: ^11.0 || ^10.1
- phpunit/phpunit: ^11.0 || ^10.5
- psr/container: ^2.0 || ^1.0
- psr/http-server-middleware: ^1.0
- shlinkio/shlink-json: ^1.0
- symfony/console: ^7.0 || ^6.4
- symfony/event-dispatcher: ^7.0 || ^6.4
- symfony/process: ^7.0 || ^6.4
Requires (Dev)
- phpstan/phpstan: ^1.10
- roave/security-advisories: dev-master
- shlinkio/php-coding-standard: ~2.3.0
This package is auto-updated.
Last update: 2024-10-28 09:01:34 UTC
README
Helpers and utilities to run different types of tests in Shlink.
Installation
Install this tool using composer.
composer require shlinkio/shlink-test-utils --dev
Base test classes
ApiTestCase
for API e2e tests.DbTestCase
for database integration tests.
Both classes extends [phpunit]'s TestCase
class.
TestHelper
A TestHelper
class is provided too. It has methods to initialize a testing database and to seed the database fixtures.