PHPackages                             nexendrie/testbench - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. nexendrie/testbench

ActiveLibrary[Testing &amp; Quality](/categories/testing)

nexendrie/testbench
===================

Simple integration testing tool for Nette Framework applications

v2.7.1(5y ago)02.8kBSD-3-ClausePHPPHP &gt;=7.4.0CI failing

Since Mar 27Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/nexendrie/testbench)[ Packagist](https://packagist.org/packages/nexendrie/testbench)[ RSS](/packages/nexendrie-testbench/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (24)Versions (32)Used By (0)

Testbench
=========

[](#testbench)

[![Total Downloads](https://camo.githubusercontent.com/491cf29ef200915d966ac0df95c1b3a65c54c8805978c170f8b4850048890523/68747470733a2f2f706f7365722e707567782e6f72672f6e6578656e647269652f7465737462656e63682f646f776e6c6f616473)](https://packagist.org/packages/nexendrie/testbench) [![Latest Stable Version](https://camo.githubusercontent.com/bb46f02ffebdc1eaf480a97364efcd1712090b38c63fe6a4f0029af3be8e8380/68747470733a2f2f706f7365722e707567782e6f72672f6e6578656e647269652f7465737462656e63682f762f737461626c65)](https://packagist.org/packages/nexendrie/testbench) [![Tests](https://github.com/nexendrie/testbench/actions/workflows/tests.yaml/badge.svg)](https://github.com/nexendrie/testbench/actions/workflows/tests.yaml)

Tested against PHP 7.4. Please read [this wiki](https://github.com/mrtnzlml/testbench/wiki).

Heavily inspired by these GitHub projects:

- [Kdyby/TesterExtras](https://github.com/Kdyby/TesterExtras), [Librette](https://github.com/librette) tests, [Nette](https://github.com/nette) tests and [damejidlo/modular-testcase](https://github.com/damejidlo/modular-testcase)

And article(s):

- [Bootstrap your integration testing database](https://jiripudil.cz/blog/bootstrap-your-integration-testing-database) (Jiří Pudil)
- [Testování presenterů v Nette](https://web.archive.org/web/20170113231146/https://zlml.cz/testovani-presenteru-v-nette) (Martin Zlámal)

Simple test bench for Nette Framework projects
----------------------------------------------

[](#simple-test-bench-for-nette-framework-projects)

Write integration tests as simple as possible. This project helps you to write tests very quickly. DRY! The main goal of this project is to make testing very simple for everyone and help with the difficult start.

You can find few examples in this readme or take a look to the `tests` folder in this project.

Installation
------------

[](#installation)

```
$ composer require --dev nexendrie/testbench
```

Minimal code
------------

[](#minimal-code)

At first, you need classic bootstrap file (just example, DIY):

```
