ArrayReaderTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testReader() 0 9 1
1
<?php
2
3
namespace Jalle19\StatusManager\Test\Configuration\Reader;
4
5
use Jalle19\StatusManager\Configuration\Reader\ArrayReader;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Class ArrayReaderTest
10
 * @package   Jalle19\StatusManager\Test\Configuration\Reader
11
 * @copyright Copyright &copy; Sam Stenvall 2016-
12
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
13
 */
14
class ArrayReaderTest extends TestCase
15
{
16
17
	/**
18
	 * 
19
	 */
20
	public function testReader()
21
	{
22
		$configuration = [
23
			'foo' => 'bar',
24
			'baz',
25
		];
26
27
		$reader = new ArrayReader($configuration);
28
		$this->assertEquals($configuration, $reader->readConfiguration());
29
	}
30
31
}
32