PHPackages                             techdivision/techdivision\_magentounittesting - 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. techdivision/techdivision\_magentounittesting

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

techdivision/techdivision\_magentounittesting
=============================================

This projects aims to bring the core tests and the important parts of the Magento 2 testsuite to Magento 1.

v1.0.1(9y ago)5712332[2 issues](https://github.com/techdivision/TechDivision_MagentoUnitTesting/issues)[2 PRs](https://github.com/techdivision/TechDivision_MagentoUnitTesting/pulls)OSL-3.0HTMLPHP &gt;=5.3.0

Since Aug 2Pushed 8y ago11 watchersCompare

[ Source](https://github.com/techdivision/TechDivision_MagentoUnitTesting)[ Packagist](https://packagist.org/packages/techdivision/techdivision_magentounittesting)[ Docs](https://github.com/techdivision/TechDivision_MagentoUnitTesting)[ RSS](/packages/techdivision-techdivision-magentounittesting/feed)WikiDiscussions github Synced today

READMEChangelog (2)Dependencies (2)Versions (2)Used By (0)

PHPUnit based testsuite for Magento 1
=====================================

[](#phpunit-based-testsuite-for-magento-1)

This project aims to bring the core tests and the important parts of the Magento 2 testsuite to Magento 1.

Please refer to the [blog post (German)](http://www.techdivision.com/blog/phpunit-tests-magento/) for further information.

With the TechDivision\_MagentoUnitTesting framework located at src/dev/tests/unit/framework is it possible to reach 100% unit test coverage for Magento 1.

How to use
==========

[](#how-to-use)

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

[](#installation)

Copy the whole content of the src directory to your Magento project.

```
composer install
cp -R src/*

```

Configuration
-------------

[](#configuration)

We recommend to create an own phpunit xml file if you want write tests only for your own module. You will find an example file (phpunit.xml.dev) in src/dev/tests/unit/ directory, which is a good beginning. That example xml also includes the html coverage report which is a must-have while writing your tests.

Execution
---------

[](#execution)

Execute your tests with the following command:

```
cd
php dev/tests/phpunit-3.7.37.phar -c dev/tests/unit/phpunit.xml.dev

```

Replace dev/tests/unit/phpunit.xml.dev with your own xml file, if you create one.

To display the coverage report browse the following url:

```
/coverage/index.html

```

Writing tests
-------------

[](#writing-tests)

To use the framework you have to extend your test classes from TechDivision\_MagentoUnitTesting\_TestCase\_Abstract or an other testcase class which is extended from the abstract class. All testcases are located at src/dev/tests/unit/framework/TechDivision/MagentoUnitTesting/TestCase

Documentation for testing framework
===================================

[](#documentation-for-testing-framework)

[https://github.com/techdivision/TechDivision\_MagentoUnitTesting/wiki](https://github.com/techdivision/TechDivision_MagentoUnitTesting/wiki)

Feel free to open an issue.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~41 days

Total

2

Last Release

3578d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/287509?v=4)[Tim Wagner](/maintainers/wagnert)[@wagnert](https://github.com/wagnert)

![](https://avatars.githubusercontent.com/u/4931168?v=4)[Bernhard Wick](/maintainers/wick-ed)[@wick-ed](https://github.com/wick-ed)

---

Top Contributors

[![wagnert](https://avatars.githubusercontent.com/u/287509?v=4)](https://github.com/wagnert "wagnert (75 commits)")[![vadimjustus](https://avatars.githubusercontent.com/u/4609608?v=4)](https://github.com/vadimjustus "vadimjustus (54 commits)")[![jean-bernard-valentaten](https://avatars.githubusercontent.com/u/22167006?v=4)](https://github.com/jean-bernard-valentaten "jean-bernard-valentaten (23 commits)")[![stockbauerm](https://avatars.githubusercontent.com/u/1511879?v=4)](https://github.com/stockbauerm "stockbauerm (7 commits)")[![Vinai](https://avatars.githubusercontent.com/u/72463?v=4)](https://github.com/Vinai "Vinai (4 commits)")[![deiserh](https://avatars.githubusercontent.com/u/16748061?v=4)](https://github.com/deiserh "deiserh (4 commits)")[![sydekumf](https://avatars.githubusercontent.com/u/3983052?v=4)](https://github.com/sydekumf "sydekumf (3 commits)")[![david-fuehr](https://avatars.githubusercontent.com/u/22166869?v=4)](https://github.com/david-fuehr "david-fuehr (2 commits)")[![maderlock](https://avatars.githubusercontent.com/u/630320?v=4)](https://github.com/maderlock "maderlock (1 commits)")[![larsroettig](https://avatars.githubusercontent.com/u/5289370?v=4)](https://github.com/larsroettig "larsroettig (1 commits)")

### Embed Badge

![Health badge](/badges/techdivision-techdivision-magentounittesting/health.svg)

```
[![Health](https://phpackages.com/badges/techdivision-techdivision-magentounittesting/health.svg)](https://phpackages.com/packages/techdivision-techdivision-magentounittesting)
```

###  Alternatives

[drupal/core-dev

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

2022.0M321](/packages/drupal-core-dev)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k41.3M38.9k](/packages/orchestra-testbench)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

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

PHPackages © 2026

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