Test_Result.php
1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
namespace Wpo\Tests;
// Prevent public access to this script
defined('ABSPATH') or die();
if (!class_exists('\Wpo\Test\Test_Result')) {
class Test_Result
{
const SEVERITY_LOW = 'low';
const SEVERITY_CRITICAL = 'critical';
const SEVERITY_BLOCKING = 'blocking';
const CAPABILITY_EXTENSIONS = 'INSTALLED EXTENSIONS';
const CAPABILITY_CONFIG = 'CONFIGURATION';
const CAPABILITY_OIC_SSO = 'OPENID CONNECT BASED SSO';
const CAPABILITY_B2C_SSO = 'AZURE AD B2C SSO';
const CAPABILITY_SAML_SSO = 'SAML 2.0 BASED SSO';
const CAPABILITY_ACCESS_TOKENS = 'ACCESS TOKENS';
const CAPABILITY_PROFILE_PLUS = 'PROFILE+';
const CAPABILITY_MAIL = 'MAIL';
const CAPABILITY_AVATAR = 'AVATAR';
const CAPABILITY_CUSTOM_USER_FIELDS = 'CUSTOM USER FIELDS';
const CAPABILITY_REST = 'AAD BASED REST API PROTECTION';
const CAPABILITY_ROLES_ACCESS = 'ROLES + ACCESS / AUDIENCES';
const CAPABILITY_SCIM = 'SCIM';
const CAPABILITY_SYNC = 'SYNC';
const CAPABILITY_APPS = 'M365 APPS';
public $timestamp = null;
public $category = null;
public $severity = null;
public $title = null;
public $sequence = 0;
public $passed = false;
public $fix = [];
public $message = null;
public $more_info = null;
public $data = null;
public function __construct($title, $category, $severity = self::SEVERITY_LOW)
{
$this->timestamp = date("j F Y H:i:s", time());
$this->title = $title;
$this->category = $category;
$this->severity = $severity;
}
}
}