PHPackages                             illusiard/yii2-testkit - 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. illusiard/yii2-testkit

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

illusiard/yii2-testkit
======================

v0.1.0(2mo ago)042BSD-3-ClausePHPPHP &gt;=8.1

Since Feb 9Pushed 2mo agoCompare

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

READMEChangelogDependencies (4)Versions (2)Used By (2)

illusiard/yii2-testkit
======================

[](#illusiardyii2-testkit)

**Short Description**

Минимальный каркас для тестирования Yii2 расширений и приложений. Пакет даёт базовые TestCase и шаблоны Codeception без лишней логики.

**Installation**

Установите пакет как dev-зависимость:

```
composer require --dev illusiard/yii2-testkit
```

**Using In Yii2 Extension (Extension Mode)**

В расширении используйте `YiiTestCase` для поднятия минимального приложения:

```
use Illusiard\Yii2Testkit\Testing\YiiTestCase;

final class MyServiceTest extends YiiTestCase
{
    protected function appConfig(): array
    {
        return [
            'id' => 'test-app',
            'basePath' => __DIR__,
        ];
    }

    public function testSomething(): void
    {
        $this->assertNotNull(\Yii::$app);
    }
}
```

**Using In Yii2 Application (Basic / Advanced)**

В приложении используйте шаблоны `resources/codeception/*.yml` и настройте `configFile`/`entryScript` под структуру вашего проекта. Приложение поднимается самим Codeception через модуль Yii2.

**Test Suites Overview (Unit / Integration / Functional)**

- `unit`: тесты без Yii, базовый `UnitTestCase`.
- `integration`: тесты с Yii, обычно на основе `YiiTestCase`.
- `functional`: функциональные тесты в App Mode через модуль Yii2 и `configFile` приложения.

**License**

BSD-3-Clause. Подробности в `LICENSE`.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance88

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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

88d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/514a2bdbd1dfc61512460d4026da34187fb5e20e69be3ada0a8594b593dd269a?d=identicon)[Illusiard](/maintainers/Illusiard)

---

Top Contributors

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

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/illusiard-yii2-testkit/health.svg)

```
[![Health](https://phpackages.com/badges/illusiard-yii2-testkit/health.svg)](https://phpackages.com/packages/illusiard-yii2-testkit)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M678](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)

PHPackages © 2026

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