Passed
Push — develop ( ec71a0...627254 )
by Nikolay
12:54 queued 13s
created

PhoneBookConfTest::testReloadServices()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Copyright (C) MIKO LLC - All Rights Reserved
4
 * Unauthorized copying of this file, via any medium is strictly prohibited
5
 * Proprietary and confidential
6
 * Written by Nikolay Beketov, 6 2020
7
 *
8
 */
9
10
namespace MikoPBX\Tests\Modules\ModulePhoneBook\Lib;
11
12
use Modules\ModulePhoneBook\Lib\PhoneBookConf;
13
use PHPUnit\Framework\TestCase;
14
15
class PhoneBookConfTest extends TestCase
16
{
17
18
    public function testGenerateIncomingRoutBeforeDial()
19
    {
20
        $appClass = new PhoneBookConf();
21
        $result = $appClass->generateIncomingRoutBeforeDial('X!');
22
        $this->assertStringContainsString('agi-bin/agi_phone_book.php', $result);
23
24
    }
25
26
}
27