PHPackages                             yegortokmakov/phprtest - 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. yegortokmakov/phprtest

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

yegortokmakov/phprtest
======================

Simple resources usage tests for PHP applications

0.2.0(10y ago)681MITPHPPHP &gt;=5.4

Since Jun 9Pushed 10y agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (5)Used By (0)

PHPRTest [![Latest Stable](https://camo.githubusercontent.com/636fb9221b51be59ff7861c30f77db587cc566690a695e66d227d445d18b3b9f/68747470733a2f2f706f7365722e707567782e6f72672f7965676f72746f6b6d616b6f762f70687072746573742f76657273696f6e2e706e67)](https://packagist.org/packages/yegortokmakov/phprtest) [![Build Status](https://camo.githubusercontent.com/21984ede0909ca5e8e09f5aaf347287279c01359b6acd7914a686bdc7fe42f9e/68747470733a2f2f7472617669732d63692e6f72672f7965676f72746f6b6d616b6f762f70687072746573742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yegortokmakov/phprtest)
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#phprtest--)

PHPRTest is a simple resources usage tests for modern PHP applications. In a fashion of PHPUnit, it allows developers to keep track of memory consumption and execution time of critical parts of software. PHPRTest allows to set up soft and hard limits for each test suite and is easy to integrate with your favorite CI solution.

Usage
-----

[](#usage)

Here is a basic test of Symfony console application. In this test we run `import` command and assert that execution time is less than 0.05 seconds, soft memory usage limit is 6 MB and hard memory usage limit is 10 MB.

```
