PHPackages                             ambimax/ecomdev\_phpunit - 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. ambimax/ecomdev\_phpunit

ActiveMagento-module[Testing &amp; Quality](/categories/testing)

ambimax/ecomdev\_phpunit
========================

Magento PHPUnit Integration

v0.3.7(11y ago)0124OSL-3.0PHP

Since Jan 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ambimax/EcomDev_PHPUnit)[ Packagist](https://packagist.org/packages/ambimax/ecomdev_phpunit)[ Docs](http://www.ecomdev.org/shop/code-testing/php-unit-test-suite.html)[ RSS](/packages/ambimax-ecomdev-phpunit/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (13)Used By (0)

[![EcomDev](https://camo.githubusercontent.com/076909a6fd8b397c4fbd62885024d3ec985125dcbe9c4ebab0d1c9fd6e92a4d2/687474703a2f2f7777772e65636f6d6465762e6f72672f77702d636f6e74656e742f7468656d65732f65636f6d6465762f696d616765732f6c6f676f2e706e67)](http://www.ecomdev.org/services/magento-development?utm_source=github&utm_medium=logo&utm_campaign=github)

Magento PHPUnit Integration
===========================

[](#magento-phpunit-integration)

Magento is a quite complex platform without built in unit test suite, so the code is not oriented on running tests over it.

This extension was created especially for resolving this problem and promoting test driven development practices in Magento developers community. It doesn't change core files or brake your Magento instalment database, because all the system objects are replaced during the run-time with the test ones and a separate database connection is used for tests.

System Requirements
-------------------

[](#system-requirements)

- PHP 5.3 or higher
- PHPUnit 3.7.x
- Magento CE1.4.x-1.7.x/PE1.9.x-PE1.10.x/EE1.9.x-1.12.x

Build Status
------------

[](#build-status)

- Latest Release: [![Master Branch](https://camo.githubusercontent.com/827645423ea2adc1856f9a35c96b4836adabd0588e3b5aaa3e43403fa44f6324/68747470733a2f2f7472617669732d63692e6f72672f45636f6d4465762f45636f6d4465765f504850556e69742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/EcomDev/EcomDev_PHPUnit)
- Development Branch: [![Development Branch](https://camo.githubusercontent.com/9763166e53e2776b2015ada1ce1f9e6e39db3b08f705e3eac6262f61c1e01010/68747470733a2f2f7472617669732d63692e6f72672f45636f6d4465762f45636f6d4465765f504850556e69742e706e673f6272616e63683d646576)](https://travis-ci.org/EcomDev/EcomDev_PHPUnit)

Documentation
-------------

[](#documentation)

- [EcomDev\_PHPUnit version 0.2.0](http://www.ecomdev.org/wp-content/uploads/2011/05/EcomDev_PHPUnit-0.2.0-Manual.pdf)

Also you may follow our related [blogposts](http://www.ecomdev.org/tag/phpunit).

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

[](#installation)

1. There are two ways of obtaining the extension:

    - Use [Module Manager](https://github.com/colinmollenhour/modman)

    ```
    modman clone git://github.com/EcomDev/EcomDev_PHPUnit.git
    ```

    - Add extension as dependency in your composer.json to install it from [Magento Composer Repository](http://packages.firegento.com/)```
        {
              "require": {
                 "ecomdev/ecomdev_phpunit": "*"
              }
        }
        ```
2. Open your terminal and navigate to your magento directory for performing the following command, they are required to configure system for running the test suite

    ```
    # Shell scripts needs to be run from this directory
    cd $YOUR_MAGENTO_DIRECTORY/shell
    # Specify your test database name and base url for controller tests
    php ecomdev-phpunit.php -a magento-config --db-name $DB_NAME --base-url http://your.magento.url/
    ```

    If you receive a warning on PHPUnit checks for optional packages, run the following command

    ```
    php ecomdev-phpunit.php -a fix-autoloader
    ```
3. Run the unit tests first time for installing test database. It will take about 3 minutes.

    ```
     $ phpunit

    ```
4. If it shows that there was no tests found, it means that extension was successfully installed. If it shows some errors, then it means, that your customizations has install scripts that relay on your current database data and you should fix them. Or use your dev database as a base for the tests, but prior first time running the suite.

Issue Tracker
-------------

[](#issue-tracker)

We use github issue tracker only for contributions management. If you want to post an issue please use our [Issue Tracker](http://project.ecomdev.org/projects/mage-unit)

Contributions
-------------

[](#contributions)

If you want to take a part in improving our extension please create branches based on dev one.

\###Create your contribution branch:

```
$ git checkout -b [your-name]/[feature] dev

```

Then submit them for pull request.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 78.3% 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 ~92 days

Recently: every ~21 days

Total

8

Last Release

4261d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8efdb9ca503ce1ca4d650ae51ba85c9a1cc5de950c9a3947adcbed17df991e78?d=identicon)[tschifftner](/maintainers/tschifftner)

---

Top Contributors

[![IvanChepurnyi](https://avatars.githubusercontent.com/u/866758?v=4)](https://github.com/IvanChepurnyi "IvanChepurnyi (224 commits)")[![jonpday](https://avatars.githubusercontent.com/u/752408?v=4)](https://github.com/jonpday "jonpday (13 commits)")[![colinmollenhour](https://avatars.githubusercontent.com/u/38738?v=4)](https://github.com/colinmollenhour "colinmollenhour (9 commits)")[![kristof-ringleff](https://avatars.githubusercontent.com/u/47804013?v=4)](https://github.com/kristof-ringleff "kristof-ringleff (8 commits)")[![tschifftner](https://avatars.githubusercontent.com/u/14741874?v=4)](https://github.com/tschifftner "tschifftner (6 commits)")[![cmuench](https://avatars.githubusercontent.com/u/211294?v=4)](https://github.com/cmuench "cmuench (4 commits)")[![Schrank](https://avatars.githubusercontent.com/u/379680?v=4)](https://github.com/Schrank "Schrank (4 commits)")[![ScreamingDev](https://avatars.githubusercontent.com/u/2559177?v=4)](https://github.com/ScreamingDev "ScreamingDev (3 commits)")[![aligentjim](https://avatars.githubusercontent.com/u/1243412?v=4)](https://github.com/aligentjim "aligentjim (3 commits)")[![vsushkov](https://avatars.githubusercontent.com/u/358764?v=4)](https://github.com/vsushkov "vsushkov (2 commits)")[![jzahedieh](https://avatars.githubusercontent.com/u/2098908?v=4)](https://github.com/jzahedieh "jzahedieh (2 commits)")[![akorolyov](https://avatars.githubusercontent.com/u/337815?v=4)](https://github.com/akorolyov "akorolyov (2 commits)")[![quafzi](https://avatars.githubusercontent.com/u/164261?v=4)](https://github.com/quafzi "quafzi (1 commits)")[![Flyingmana](https://avatars.githubusercontent.com/u/237319?v=4)](https://github.com/Flyingmana "Flyingmana (1 commits)")[![chernjie](https://avatars.githubusercontent.com/u/275729?v=4)](https://github.com/chernjie "chernjie (1 commits)")[![bogdanmuresan](https://avatars.githubusercontent.com/u/141111?v=4)](https://github.com/bogdanmuresan "bogdanmuresan (1 commits)")[![Vinai](https://avatars.githubusercontent.com/u/72463?v=4)](https://github.com/Vinai "Vinai (1 commits)")[![johnholden](https://avatars.githubusercontent.com/u/1532986?v=4)](https://github.com/johnholden "johnholden (1 commits)")

### Embed Badge

![Health badge](/badges/ambimax-ecomdev-phpunit/health.svg)

```
[![Health](https://phpackages.com/badges/ambimax-ecomdev-phpunit/health.svg)](https://phpackages.com/packages/ambimax-ecomdev-phpunit)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k129.9M920](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k41.3M39.1k](/packages/orchestra-testbench)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.0M322](/packages/drupal-core-dev)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

30300.1k7](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

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