PHPackages                             mohamedhekal/classbridge-testing - 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. mohamedhekal/classbridge-testing

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

mohamedhekal/classbridge-testing
================================

Pest testing helpers and assertions for ClassBridge without LiveKit

v0.1.1(1mo ago)03↓75%MITPHPPHP ^8.2CI failing

Since Jul 16Pushed 1mo agoCompare

[ Source](https://github.com/mohamedhekal/classbridge-testing)[ Packagist](https://packagist.org/packages/mohamedhekal/classbridge-testing)[ Docs](https://github.com/mohamedhekal/classbridge-testing)[ RSS](/packages/mohamedhekal-classbridge-testing/feed)WikiDiscussions main Synced 1w ago

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

ClassBridge Testing
===================

[](#classbridge-testing)

[![CI](https://github.com/mohamedhekal/classbridge-testing/actions/workflows/tests.yml/badge.svg)](https://github.com/mohamedhekal/classbridge-testing/actions)[![Packagist](https://camo.githubusercontent.com/8091a4f506c0c3d70228bb7e138b97075b34b0d4097335e106641e5dabd251c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d656468656b616c2f636c6173736272696467652d74657374696e672e737667)](https://packagist.org/packages/mohamedhekal/classbridge-testing)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Pest helpers and assertions for testing ClassBridge integrations without LiveKit credentials.

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

[](#installation)

```
composer require --dev mohamedhekal/classbridge-testing
```

CI without LiveKit
------------------

[](#ci-without-livekit)

Use the built-in `fake` driver from the core package for fast, deterministic tests:

```
CLASSBRIDGE_DRIVER=fake
```

Then assert classroom actions in your feature tests:

```
use Hekal\ClassBridge\Testing\ClassBridgeTestCase;
use Hekal\ClassBridge\Enums\MediaType;

class SessionModerationTest extends ClassBridgeTestCase
{
    public function test_teacher_can_mute_student(): void
    {
        // ... exercise your application code ...

        $this->assertParticipantMuted('room-1', 'student-42', MediaType::Audio);
        $this->assertRoomCreated('session-1');
    }
}
```

Or with Pest, extend the package test case via `uses()`:

```
uses(Hekal\ClassBridge\Testing\ClassBridgeTestCase::class);
```

The trait resolves the in-memory `FakeClassroomDriver` from ClassBridge and exposes assertion helpers via `ClassBridgeFake`.

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance90

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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

Every ~0 days

Total

2

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9d7c092a109fe780c7efd87ce4142eae2c0cec0f92fd1e87e769bec5661953b?d=identicon)[mohamedhekal](/maintainers/mohamedhekal)

---

Top Contributors

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

---

Tags

classbridgeedtechlaravelpesttestingtestingpestlaravelfakeeducationclassbridge

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mohamedhekal-classbridge-testing/health.svg)

```
[![Health](https://phpackages.com/badges/mohamedhekal-classbridge-testing/health.svg)](https://phpackages.com/packages/mohamedhekal-classbridge-testing)
```

###  Alternatives

[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4237.1M73](/packages/timacdonald-log-fake)[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[grazulex/laravel-chronotrace

Record and replay Laravel requests deterministically and generate tests from production traces.

1321.9k](/packages/grazulex-laravel-chronotrace)

PHPackages © 2026

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