Passed
Push — master ( 64d02f...fbdc2d )
by Tim
03:59
created

Phpsession::invokeTest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 8
nc 1
nop 0
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace SimpleSAML\Module\monitor\TestSuite\Store;
4
5
use \SimpleSAML\Module\monitor\TestConfiguration as TestConfiguration;
6
use \SimpleSAML\Module\monitor\TestCase as TestCase;
7
use \SimpleSAML\Module\monitor\TestData as TestData;
8
9
final class Phpsession extends \SimpleSAML\Module\monitor\TestSuiteFactory
10
{
11
    /**
12
     * @param TestConfiguration $configuration
13
     */
14
    public function __construct($configuration)
15
    {
16
        $this->setCategory('PHP sessions');
17
        parent::__construct($configuration);
18
    }
19
20
    /**
21
     * @return void
22
     */
23
    public function invokeTest()
24
    {
25
        $input = [
26
            'path' => session_save_path(),
27
            'category' => 'Session storage'
28
        ];
29
        $testData = new TestData($input);
30
31
        $test = new TestCase\FileSystem\FreeSpace($this, $testData);
32
        $testResult = $test->getTestResult();
33
        $this->addTestResult($testResult);
34
35
        $this->setTestResult($testResult);
36
    }
37
}
38