Componette

Componette

wavevision

wavevision / nette-tests 3.1.2

🧰 PHPUnit extension for testing @nette applications

download-cloud-line composer require wavevision/nette-tests

Nette Tests

CI Coverage Status PHPStan

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

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.

  • 3.1.2

  • 2.0.0 Improved asserts

    • simplified setup
    • added extrators
    • better fail messages
  • 1.0.1 Update coding standard

bar-chart-fill

Statistics

download-cloud-fill
2361
star-fill
5
bug-fill
2
flashlight-fill
68d
price-tag-2-line

Badges

Componette Componette felix@nette.org