Completed
Push — master ( fa5ac7...eb2a5f )
by Jan
06:08
created

EvidenceEnvironmentTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 20
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
class EvidenceEnvironmentTest extends \PHPUnit\Framework\TestCase
6
{
7
8
	/**
9
	 * @dataProvider dataTestGetWsdlPath
10
	 */
11
	public function testGetWsdlPath(EvidenceEnvironment $environment, string $expectedFileName)
12
	{
13
		$this->assertSame($expectedFileName, basename($environment->getWsdlPath()));
14
	}
15
16
	public function dataTestGetWsdlPath(): array
17
	{
18
		return [
19
			[new EvidenceEnvironment(EvidenceEnvironment::PLAYGROUND), 'EETServiceSOAP_playground.wsdl'],
20
			[new EvidenceEnvironment(EvidenceEnvironment::PRODUCTION), 'EETServiceSOAP_production.wsdl'],
21
		];
22
	}
23
24
}
25