EvidenceEnvironmentTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetWsdlPath() 0 4 1
A dataTestGetWsdlPath() 0 7 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatEET;
4
5
use PHPUnit\Framework\TestCase;
6
7
class EvidenceEnvironmentTest extends TestCase
8
{
9
10
	/**
11
	 * @dataProvider dataTestGetWsdlPath
12
	 */
13
	public function testGetWsdlPath(EvidenceEnvironment $environment, string $expectedFileName): void
14
	{
15
		$this->assertSame($expectedFileName, basename($environment->getWsdlPath()));
16
	}
17
18
	/**
19
	 * @return mixed[]
20
	 */
21
	public function dataTestGetWsdlPath(): array
22
	{
23
		return [
24
			[EvidenceEnvironment::get(EvidenceEnvironment::PLAYGROUND), 'EETServiceSOAP_playground.wsdl'],
25
			[EvidenceEnvironment::get(EvidenceEnvironment::PRODUCTION), 'EETServiceSOAP_production.wsdl'],
26
		];
27
	}
28
29
}
30