StyleTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInline() 0 17 1
1
<?php
2
namespace Redaxscript\Tests\Head;
3
4
use Redaxscript\Head;
5
use Redaxscript\Tests\TestCaseAbstract;
6
7
/**
8
 * StyleTest
9
 *
10
 * @since 3.0.0
11
 *
12
 * @package Redaxscript
13
 * @category Tests
14
 * @author Balázs Szilágyi
15
 *
16
 * @covers Redaxscript\Head\HeadAbstract
17
 * @covers Redaxscript\Head\Style
18
 */
19
20
class StyleTest extends TestCaseAbstract
21
{
22
	/**
23
	 * testInline
24
	 *
25
	 * @since 3.0.0
26
	 *
27
	 * @param string $append
28
	 * @param string $prepend
29
	 * @param string $expect
30
	 *
31
	 * @dataProvider providerAutoloader
32
	 */
33
34
	public function testInline(string $append = null, string $prepend = null, string $expect = null) : void
35
	{
36
		/* setup */
37
38
		$style = Head\Style::getInstance();
39
		$style
40
			->appendInline($append)
41
			->prependInline($prepend);
42
43
		/* actual */
44
45
		$actual = $style;
46
47
		/* compare */
48
49
		$this->assertEquals($expect, $actual);
50
	}
51
}
52