wavevision / nette-tests
PHPUnit extension for testing Nette applications.
Installs: 7 779
Dependents: 6
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 1
Open Issues: 6
Requires
- php: >=8.0
- ext-fileinfo: *
- latte/latte: >=2.9
- nepada/presenter-mapping: ^2.3
- nette/application: ^3.1
- nette/bootstrap: ^3.1
- nette/caching: ^3.1
- nette/di: ^3.0
- nette/finder: ^2.5
- nette/forms: ^3.1
- nette/http: ^3.1
- nette/utils: ^3.2
- phpunit/phpunit: ^9.3
- tracy/tracy: ^2.8
- wavevision/utils: ^2.2
Requires (Dev)
- dev-master
- 5.0.2
- 5.0.1
- 5.0.0
- 4.0.0
- 3.2.0
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.1
- 1.0.0
- dev-dependabot/composer/guzzlehttp/psr7-2.5.0
- dev-feature/rename-iresponse
- dev-dependabot/composer/guzzlehttp/guzzle-7.4.5
- dev-dependabot/composer/latte/latte-2.10.8
- dev-feature/headers-mock
- dev-feature/php8
- dev-development
- dev-feature/upgrade-phpunit
- dev-feature/better-asserts
This package is auto-updated.
Last update: 2024-08-19 21:41:14 UTC
README
Nette Tests
PHPUnit extension for testing Nette applications.
Install
composer require --dev wavevision/nette-tests
Configuration
Add callback for creating Nette\Configurator
to bootstrap for tests.
Features
- DI container in tests, allow services injects in tests
- presenter testing
- form submit testing
Presenter mapping
This testing suite lets you use your presenter classes to resolve :Module:Presenter:action
mapping. This is achieved
using nepada/presenter-mapping extension which is registered in your
tests DIC as presenterMapping
.
If your tested app uses this extension for presenter mapping as well, make sure you register it in your config with the same name.
Learn
See this great talk by Jakub Filla to learn basic concepts of this extension.