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
|
<?php
/**
* Copyright 2010-2014 Horde LLC (http://www.horde.org/)
*
* @package Ldap
* @subpackage UnitTests
* @author Jan Schneider <jan@horde.org>
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL-3.0
*/
class Horde_Ldap_TestBase extends Horde_Test_Case
{
protected static $ldapcfg;
public function setUp()
{
// Check extension.
try {
Horde_Ldap::checkLDAPExtension();
} catch (Horde_Ldap_Exception $e) {
$this->markTestSkipped($e->getMessage());
}
$config = $this->getConfig('LDAP_TEST_CONFIG');
if (!$config) {
$this->markTestSkipped('No configuration for LDAP tests.');
}
self::$ldapcfg = $config;
}
}
|