Passed
Push — master ( 7d7569...8975ed )
by Tim
01:58
created

TestNegotiateTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testNegotiate() 0 12 1
1
<?php
2
3
namespace SimpleSAML\Module\monitor\Test;
4
5
use \SimpleSAML_Configuration as ApplicationConfiguration;
6
use \SimpleSAML\Module\monitor\TestCase as TestCase;
7
use \SimpleSAML\Module\monitor\TestData as TestData;
8
use \SimpleSAML\Module\monitor\State as State;
9
10
/**
11
 * Tests for TestCase\Negotiate
12
 */
13
class TestNegotiateTest extends \PHPUnit_Framework_TestCase
14
{
15
    public function testNegotiate()
16
    {
17
        
18
        $confTest = new TestCase\AuthSource\Negotiate(
19
            new TestData([
20
                'keytab' => 'example/test.keytab',
21
                'autorization' => 'abc:123',
22
            ])
23
        );
24
        $testResult = $confTest->getTestResult();
25
26
        $this->assertEquals(State::SKIPPED, $testResult->getState());
27
    }
28
}
29