I18nTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 18
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGet() 0 16 1
1
<?php
2
3
class I18nTest extends \PHPUnit\Framework\TestCase
4
{
5
	public function testGet()
6
	{
7
		$conf = array(
8
			'apc_enabled' => true,
9
			'i18n' => array( 'en' => array( 0 => array() ) ),
10
		);
11
12
		$container = new \Slim\Container();
13
		$container['aimeos'] = new \Aimeos\Bootstrap();
14
		$container['aimeos.config'] = new \Aimeos\Slim\Base\Config( $container, $conf );
15
16
17
		$object = new \Aimeos\Slim\Base\I18n( $container );
18
		$list = $object->get( array( 'en' ) );
19
20
		$this->assertInstanceOf( '\Aimeos\MW\Translation\Iface', $list['en'] );
21
	}
22
}
23