Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testCertData() |
||
14 | { |
||
15 | $authSourceData = [ |
||
16 | 'hostname' => 'ldaps://ldap.example.com:636', |
||
17 | ]; |
||
18 | |||
19 | $confTest = new TestCase\AuthSource\Ldap\Configuration( |
||
20 | new TestData(['authSourceData' => $authSourceData]) |
||
21 | ); |
||
22 | $testResult = $confTest->getTestResult(); |
||
23 | $this->assertEquals('ldaps://ldap.example.com:636', $testResult->getSubject()); |
||
24 | |||
25 | $authSourceData = [ |
||
26 | 'hostname' => 'ldap.example.com', |
||
27 | 'port' => 636, |
||
28 | ]; |
||
29 | |||
30 | $confTest = new TestCase\AuthSource\Ldap\Configuration( |
||
|
|||
31 | new TestData(['authSourceData' => $authSourceData]) |
||
32 | ); |
||
33 | $this->assertEquals('ldaps://ldap.example.com:636', $testResult->getSubject()); |
||
34 | } |
||
36 |