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

TestNegotiateTest::testNegotiate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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