Gettext   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testBasic() 0 6 1
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace hemio\form;
10
11
/**
12
 * Test gettext features
13
 *
14
 * @author Michael Herold <[email protected]>
15
 */
16
class Gettext extends \Helpers {
17
18
    public function testBasic() {
19
        $doc = self::getDocumentBody();
20
        $doc->addChild(_('Basic test string'));
21
22
        $this->_assertEqualsXmlFile($doc, 'gettextBasic.html');
23
    }
24
25
}
26