-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_media_tests.php
More file actions
38 lines (28 loc) · 1.27 KB
/
run_media_tests.php
File metadata and controls
38 lines (28 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Runner de testes para MediaChannel
*/
require_once __DIR__ . '/tests/MediaChannelTest.php';
use Tests\MediaChannelTest;
// Limpa a tela
system('clear');
echo "\n";
echo "\033[1;35m╔═══════════════════════════════════════════╗\033[0m\n";
echo "\033[1;35m║ ║\033[0m\n";
echo "\033[1;35m║ MediaChannel Test Suite ║\033[0m\n";
echo "\033[1;35m║ ║\033[0m\n";
echo "\033[1;35m║ Validação de mediaChannel.php ║\033[0m\n";
echo "\033[1;35m║ Codecs, DTMF, VAD e Members ║\033[0m\n";
echo "\033[1;35m║ ║\033[0m\n";
echo "\033[1;35m╚═══════════════════════════════════════════╝\033[0m\n";
$startTime = microtime(true);
// Executa os testes
$testSuite = new MediaChannelTest();
$success = $testSuite->runAll();
$endTime = microtime(true);
$duration = round($endTime - $startTime, 3);
echo "\n";
echo "\033[1;36m⏱ Tempo de execução: {$duration}s\033[0m\n";
echo "\n";
// Exit code
exit($success ? 0 : 1);