PHPackages                             osotov/phpunit-for-bitrix - 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. osotov/phpunit-for-bitrix

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

osotov/phpunit-for-bitrix
=========================

Base test class for unit tests inside 1C-Bitrix framework environment

0.1.0(10y ago)2282[1 PRs](https://github.com/osotov/phpunit-for-bitrix/pulls)MITPHPPHP &gt;=5.5.9

Since Jul 18Pushed 7y ago2 watchersCompare

[ Source](https://github.com/osotov/phpunit-for-bitrix)[ Packagist](https://packagist.org/packages/osotov/phpunit-for-bitrix)[ Docs](https://github.com/osotov/phpunit-for-bitrix)[ RSS](/packages/osotov-phpunit-for-bitrix/feed)WikiDiscussions master Synced 1mo ago

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

phpunit-for-bitrix
==================

[](#phpunit-for-bitrix)

Base test class for unit tests inside 1C-Bitrix framework environment

note
----

[](#note)

This package requires latest versions of php (&gt;= 5.5.9).

installation
------------

[](#installation)

To install package, run the command below and you will get the latest version

```
composer require osotov/phpunit-for-bitrix
```

Copy phpunit.xml.dist file from package to document root. Set up your tests directory inside tag. If you want to use another bootstrap file set it instead default inside bootstrap attribute.

usage
-----

[](#usage)

To use this package extend \\Osotov\\PhpunitForBitrix\\BitrixTestCase with your test class.

This package uses awesome mock framework Mockery to ease mock and stub creation.

Additionally package uses Faker to help you with creation of dummy data.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3957d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b0d87bccc0a841ed4aea59f81790e89155a60902ed0d8d2d58ab961da124ced?d=identicon)[osotov](/maintainers/osotov)

---

Top Contributors

[![osotov](https://avatars.githubusercontent.com/u/3656517?v=4)](https://github.com/osotov "osotov (3 commits)")

---

Tags

phpunitbitrix

### Embed Badge

![Health badge](/badges/osotov-phpunit-for-bitrix/health.svg)

```
[![Health](https://phpackages.com/badges/osotov-phpunit-for-bitrix/health.svg)](https://phpackages.com/packages/osotov-phpunit-for-bitrix)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[robiningelbrecht/phpunit-pretty-print

Prettify PHPUnit output

76460.0k15](/packages/robiningelbrecht-phpunit-pretty-print)[juampi92/test-seo

Easy way to test your SEO

26341.0k](/packages/juampi92-test-seo)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

1783.0k34](/packages/robiningelbrecht-phpunit-coverage-tools)[lastzero/test-tools

Increases testing productivity by adding a service container and self-initializing fakes to PHPUnit

2244.3k13](/packages/lastzero-test-tools)

PHPackages © 2026

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