for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimpleSAML\Module\monitor\TestSuite;
use \SimpleSAML\Module\monitor\TestCase as TestCase;
final class Configuration extends \SimpleSAML\Module\monitor\TestSuiteFactory
{
/*
* @return void
*/
protected function invokeTestSuite()
$configuration = $this->getConfiguration();
$globalConfig = $configuration->getGlobalConfig();
// Check Service Communications Certificate
if (\SimpleSAML\Utils\HTTP::isHTTPS()) {
$input = array(
'category' => 'Service Communications Certificate',
'hostname' => $_SERVER['SERVER_NAME'],
'port' => $_SERVER['SERVER_PORT']
);
$testData = new TestData($input);
$test = new TestCase\Cert\Remote($this, $testData);
$this->addTest($test);
}
// Check metadata signing certificate when available
if ($globalConfig->hasValue('metadata.sign.certificate')) {
$metadataCert = $globalConfig->getString('metadata.sign.certificate');
'certFile' => \SimpleSAML\Utils\Config::getCertPath($metadataCert),
'category' => 'Metadata Signing Certificate'
$test = new TestCase\Cert\File($this, $testData);
$tests = $this->getTests();
foreach ($tests as $test)
$this->addMessages($test->getMessages());
$this->calculateState();