mohamedhekal/classbridge-testing

Pest testing helpers and assertions for ClassBridge without LiveKit
3
Install
composer require mohamedhekal/classbridge-testing
Latest Version:v0.1.1
PHP:^8.2
Laravel:11 · 12
License:MIT
Last Updated:Jul 16, 2026
Links: GitHub  ·  Packagist
Maintainer: mohamedhekal

ClassBridge Testing

CI Packagist License: MIT

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

Installation

composer require --dev mohamedhekal/classbridge-testing

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

MIT

Related Packages

odinns/phpstan-pest-this

PHPStan extensions to infer Pest closure $this type from test file mappings.

3,129 1
eubentof/gherkish

Keep Gherkin scenarios and Pest tests in sync in Laravel applications.

219 2
cooper/hyperf-pest

Pest Testing for hyperf

29 2
timacdonald/log-fake

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

7,576,825 421
lavatech/log-fake

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

3,734

Version History

Version Released PHP Laravel License
v0.1.1 ^8.2 ^11.0|^12.0 MIT
v0.1.0 ^8.2 ^11.0|^12.0 MIT