PHP code example of mohamedhekal / classbridge-testing
1. Go to this page and download the library: Download mohamedhekal/classbridge-testing library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mohamedhekal / classbridge-testing example snippets
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');
}
}
uses(Hekal\ClassBridge\Testing\ClassBridgeTestCase::class);