ConsoleFormTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRender() 0 15 1
1
<?php
2
namespace Redaxscript\Tests\View;
3
4
use Redaxscript\Tests\TestCaseAbstract;
5
use Redaxscript\View;
6
7
/**
8
 * ConsoleFormTest
9
 *
10
 * @since 3.0.0
11
 *
12
 * @package Redaxscript
13
 * @category Tests
14
 * @author Henry Ruhs
15
 *
16
 * @covers Redaxscript\View\ConsoleForm
17
 * @covers Redaxscript\View\ViewAbstract
18
 */
19
20
class ConsoleFormTest extends TestCaseAbstract
21
{
22
	/**
23
	 * testRender
24
	 *
25
	 * @since 3.0.0
26
	 *
27
	 * @param array $registryArray
28
	 * @param string $expect
29
	 *
30
	 * @dataProvider providerAutoloader
31
	 */
32
33
	public function testRender(array $registryArray = [], string $expect = null) : void
34
	{
35
		/* setup */
36
37
		$this->_registry->init($registryArray);
38
		$consoleForm = new View\ConsoleForm($this->_registry, $this->_language);
39
40
		/* actual */
41
42
		$actual = $consoleForm->render();
43
44
		/* compare */
45
46
		$this->assertEquals($expect, $actual);
47
	}
48
}
49