ArrayReaderTest::testReader()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 5
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 9
rs 10
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