ValidatorExtensionTest::getExtension()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of Symnedi.
5
 * Copyright (c) 2014 Tomas Votruba (http://tomasvotruba.cz)
6
 */
7
8
namespace Symnedi\Validator\Tests\DI;
9
10
use Nette\DI\Compiler;
11
use Nette\DI\ContainerBuilder;
12
use PHPUnit_Framework_TestCase;
13
use Symnedi\Validator\DI\ValidatorExtension;
14
15
16
class ValidatorExtensionTest extends PHPUnit_Framework_TestCase
17
{
18
19
	public function testContainerValidator()
20
	{
21
		$extension = $this->getExtension();
22
		$extension->loadConfiguration();
23
	}
24
25
26
	/**
27
	 * @return ValidatorExtension
28
	 */
29
	private function getExtension()
30
	{
31
		$extension = new ValidatorExtension;
32
		$extension->setCompiler(new Compiler(new ContainerBuilder), 'compiler');
33
		return $extension;
34
	}
35
36
}
37