PHPackages                             besanek/presenter-tester - 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. besanek/presenter-tester

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

besanek/presenter-tester
========================

Simple helper for testing Nette presenters.

0.1.x-dev(11y ago)54171[1 PRs](https://github.com/besanek/PresenterTester/pulls)1BSD-3-ClausePHP

Since Jul 29Pushed 8y ago2 watchersCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (1)

PresenterTester
===============

[](#presentertester)

Creating Nette presenters for testing purposes has never been easier.

Simplest example
----------------

[](#simplest-example)

This will run Homepage presenter with default action.

```
$tester = new PresenterTester($container->getByType('\Nette\Application\IPresenterFactory'));
$tester->setPresenter('Homepage');
$response = $tester->run();
```

More complex example
--------------------

[](#more-complex-example)

```
$tester = new PresenterTester($container->getByType('\Nette\Application\IPresenterFactory'));
$tester->setPresenter('Article');
$tester->setAction('edit');
$tester->setHandle('form-save')
$tester->setParams(array('id' => 1));

$article = array(
  'content' => 'Lorem ipsum',
  'save' => 'save',
);

$tester->setPost($article);
$response = $tester->run();
```

This can edit and save the article with id 1.

Limitations
-----------

[](#limitations)

- You can not runs twice the presenter. You must clear internal cache with *clean()*.

Future
------

[](#future)

- Ajax support
- Native support for formular sending

[![Build Status](https://camo.githubusercontent.com/fd12f6b13f457e1dd5a0b8e705d0801c1ba8229890636cef2e582fe7ba44be45/68747470733a2f2f7472617669732d63692e6f72672f626573616e656b2f50726573656e7465725465737465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/besanek/PresenterTester)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4379d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f75df21192e1e13e04ffa99b366e2ab1279b1cf24472b2aac94a60921f73c6ca?d=identicon)[besanek](/maintainers/besanek)

---

Top Contributors

[![besanek](https://avatars.githubusercontent.com/u/3389310?v=4)](https://github.com/besanek "besanek (19 commits)")

---

Tags

testingnettemvcpresenter

### Embed Badge

![Health badge](/badges/besanek-presenter-tester/health.svg)

```
[![Health](https://phpackages.com/badges/besanek-presenter-tester/health.svg)](https://phpackages.com/packages/besanek-presenter-tester)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.7k](/packages/phpunit-phpunit)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k892.4M1.5k](/packages/phpunit-php-code-coverage)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.5k](/packages/mockery-mockery)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symfony/phpunit-bridge

Provides utilities for PHPUnit, especially user deprecation notices management

2.5k201.2M4.2k](/packages/symfony-phpunit-bridge)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
