for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimpleSAML\Module\monitor\Test;
use \SimpleSAML\Module\monitor\TestCase as TestCase;
use \SimpleSAML\Module\monitor\TestData as TestData;
/**
* Tests for TestCase\Ldap\Configuration
*/
class TestLdapConfigurationTest extends \PHPUnit_Framework_TestCase
{
public function testLdapConfiguration()
$authSourceData = [
'hostname' => 'ldaps://ldap.example.com:636',
];
$confTest = new TestCase\AuthSource\Ldap\Configuration(
new TestData(['authSourceData' => $authSourceData])
);
$testResult = $confTest->getTestResult();
$this->assertEquals('ldaps://ldap.example.com:636', $testResult->getSubject());
'hostname' => 'ldap.example.com',
'port' => 636,
'enable_tls' => true,
'timeout' => 999,
'debug' => true,
'referrals' => true,
$confTest
}