ApplicationTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 5
dl 0
loc 13
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testComponentElemInput() 0 5 1
A testComponentElementBitmap() 0 4 1
1
<?php
2
/**
3
 * Grandstream-XMLApp
4
 *
5
 * Copyright (c) 2017 pudelek.org.pl
6
 *
7
 * @license MIT License (MIT)
8
 *
9
 * For the full copyright and license information, please view source file
10
 * that is bundled with this package in the file LICENSE
11
 *
12
 * @author  Marcin Pudełek <[email protected]>
13
 */
14
15
namespace mrcnpdlk\Grandstream\XMLApp;
16
17
18
use mrcnpdlk\Grandstream\XMLApp\Application\Model\Components\ElemBitmap;
19
use mrcnpdlk\Grandstream\XMLApp\Application\Model\Components\ElemInput;
20
use mrcnpdlk\Grandstream\XMLApp\Helper\Rectangle;
21
22
class ApplicationTest extends TestCase
23
{
24
    public function testComponentElemInput()
25
    {
26
        $oInput = new ElemInput('elem_input');
27
        $this->assertEquals(true, is_string($oInput->getXml()->asText()));
28
    }
29
30
    public function testComponentElementBitmap(){
31
        $oBitmap = new ElemBitmap('',new Rectangle(10));
32
        $this->assertEquals(true,is_string($oBitmap->getXml()->asText()));
33
    }
34
}
35