Completed
Push — master ( 70f26a...90e34c )
by Tomáš
05:03
created

LatteFactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test() 0 8 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Zenify\ModularLatteFilters\Tests\LatteFactory;
6
7
use Nette\Bridges\ApplicationLatte\ILatteFactory;
8
use Zenify\ModularLatteFilters\Tests\PHPUnit\AbstractContainerAwareTestCase;
9
10
11
final class LatteFactoryTest extends AbstractContainerAwareTestCase
12
{
13
14
	public function test()
15
	{
16
		/** @var ILatteFactory $latteFactory */
17
		$latteFactory = $this->getServiceByType(ILatteFactory::class);
18
		$latteEngine = $latteFactory->create();
19
20
		$this->assertSame(10, $latteEngine->invokeFilter('double', [5]));
21
	}
22
23
}
24