PHPackages                             skywire/testframework - 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. skywire/testframework

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

skywire/testframework
=====================

2.4.0(3y ago)12421PHPPHP ^7|^8

Since Nov 13Pushed 3y ago6 watchersCompare

[ Source](https://github.com/Skywire/m2-test-framework)[ Packagist](https://packagist.org/packages/skywire/testframework)[ RSS](/packages/skywire-testframework/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (6)Dependencies (2)Versions (9)Used By (1)

Test Framework
==============

[](#test-framework)

Base classes to aid with unit and integration testing

Versions
========

[](#versions)

Version 1 is compatible with PHPUnit 4 and 5.

Version 2 is compatible with PHPUnit 6.

Unit tests
==========

[](#unit-tests)

Your unit tests should extend `Skywire\TestFramework\Unit\TestCase` which will set an `objectManager` property of type `Magento\Framework\TestFramework\Unit\Helper\ObjectManager`

Integration Tests
=================

[](#integration-tests)

Non controller integration tests should extend `Skywire\TestFramework\Integration\TestCase` which will set an `objectManager` property of type `Magento\TestFramework\ObjectManager`

Controller tests
----------------

[](#controller-tests)

Controller tests should extend `Magento\TestFramework\TestCase\AbstractController` which will set an `_objectManager` property of type `Magento\TestFramework\ObjectManager`

Fixture Loader
--------------

[](#fixture-loader)

Your integration tests can load entities from YAML files

```
class CatalogTest extends Skywire\TestFramework\Integration\TestCase
{
    /**
     * @magentoDataFixture loadFixture
     */
    public function testGetProducts();

    public static function loadFixture()
    {
        self::loadFixtureFile(realpath(__DIR__ . '/../_files/products.yml'));
    }
}

```

```
# _files/product.yml
entities:
    -   factory: \Magento\Catalog\Model\CategoryFactory
        records:
            -   name: Bar
                id: 100
                path: '1/2'
                level: 2
                parent_id: 2
                is_active: true
    -   factory: \Magento\Catalog\Model\ProductFactory
        repository: \Magento\Catalog\Model\ProductRepository
        records:
            -   id: 3000
                attribute_set_id: 4
                name: Foo
                sku: FOOSKU
                category_ids: [100]
            -   id: 3001
                attribute_set_id: 4
                name: Foo2
                sku: FOO2SKU
```

As well as entities you can also write directly to tables, which may be useful for entity relationships

```
# _files/product.yml
entities:
    -   factory: \Magento\Catalog\Model\CategoryFactory
        records:
            -   name: Bar
            ...
    -   factory: \Magento\Catalog\Model\ProductFactory
        repository: \Magento\Catalog\Model\ProductRepository
        records:
            -   id: 3000
                attribute_set_id: 4
                name: Foo
                sku: FOOSKU
            ...

tables:
    -   table: catalog_category_product
        rows:
            -   category_id: 100
                product_id: 3000
                position: 10
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 83.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 ~251 days

Recently: every ~285 days

Total

8

Last Release

1347d ago

PHP version history (6 changes)1PHP ~5.5.0|~5.6.0|~7.0.0

2.0.0PHP ~7.0.0|~7.1.0

2.0.1PHP ~7.0.0|~7.1.0|~7.2.0

2.1.1PHP ~7.0.0|~7.1.0|~7.2.0|~7.3.0

2.3.0PHP ^7

2.4.0PHP ^7|^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1172463?v=4)[Skywire](/maintainers/skywire)[@Skywire](https://github.com/Skywire)

---

Top Contributors

[![Demoli](https://avatars.githubusercontent.com/u/1056237?v=4)](https://github.com/Demoli "Demoli (10 commits)")[![edward-simpson](https://avatars.githubusercontent.com/u/26060776?v=4)](https://github.com/edward-simpson "edward-simpson (1 commits)")[![valguss](https://avatars.githubusercontent.com/u/105925?v=4)](https://github.com/valguss "valguss (1 commits)")

---

Tags

phpunittesting-framework

### Embed Badge

![Health badge](/badges/skywire-testframework/health.svg)

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

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[mglaman/phpstan-drupal

Drupal extension and rules for PHPStan

20729.0M124](/packages/mglaman-phpstan-drupal)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)[liip/test-fixtures-bundle

This bundles enables efficient loading of Doctrine fixtures in functional test-cases for Symfony applications

1798.3M42](/packages/liip-test-fixtures-bundle)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8017.0M43](/packages/orchestra-workbench)

PHPackages © 2026

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