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(11y ago)2282[1 PRs](https://github.com/osotov/phpunit-for-bitrix/pulls)MITPHPPHP &gt;=5.5.9

Since Jul 18Pushed 8y 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 1w 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 30% 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

4047d 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.5k142.8M1.1k](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k43.6M45.8k](/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.

2023.2M367](/packages/drupal-core-dev)

PHPackages © 2026

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