shlinkio / shlink-test-utils
Testing utils for Shlink
Installs: 38 634
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.8
- doctrine/orm: ^3.3
- fig/http-message-util: ^1.1
- guzzlehttp/guzzle: ^7.9
- phpunit/php-code-coverage: ^11.0
- phpunit/phpunit: ^11.4
- psr/container: ^2.0 || ^1.0
- psr/http-server-middleware: ^1.0
- shlinkio/shlink-json: ^1.2
- symfony/console: ^7.1
- symfony/event-dispatcher: ^7.1
- symfony/process: ^7.1
Requires (Dev)
- phpstan/phpstan: ^1.12
- roave/security-advisories: dev-master
- shlinkio/php-coding-standard: ~2.4.0
This package is auto-updated.
Last update: 2024-11-09 09:57:44 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.