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

EvidenceEnvironmentTest::dataTestGetWsdlPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
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