EvidenceEnvironmentTest::testGetWsdlPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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