Completed
Branch feature-unit-tests (9d0273)
by Tim
01:44
created

Data   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace SimpleSAML\Module\monitor\TestCase\Cert;
4
5
use \SimpleSAML\Module\monitor\TestData as TestData;
6
7
class Data extends \SimpleSAML\Module\monitor\TestCase\Cert
8
{
9
    /**
10
     * @param TestData $testData
11
     */
12
    public function __construct($testData)
13
    {
14
        $certData = $testData->getInputItem('certData');
15
        $certData = openssl_x509_parse($certData);
16
        $testData->setInput($certData, 'certData');
17
18
        parent::__construct($testData);
19
    }
20
}
21