addTestSuite('Zend_Auth_Adapter_Ldap_OfflineTest'); if (defined('TESTS_ZEND_AUTH_ADAPTER_LDAP_ONLINE_ENABLED') && constant('TESTS_ZEND_AUTH_ADAPTER_LDAP_ONLINE_ENABLED')) { /** * @see Zend_Auth_Adapter_Ldap_OnlineTest */ require_once 'Zend/Auth/Adapter/Ldap/OnlineTest.php'; $suite->addTestSuite('Zend_Auth_Adapter_Ldap_OnlineTest'); } else { $suite->addTest(new Zend_Auth_Adapter_Ldap_SkipOnlineTests()); } return $suite; } } /** * @category Zend * @package Zend_Ldap * @subpackage UnitTests * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Auth */ class Zend_Auth_Adapter_Ldap_SkipOnlineTests extends PHPUnit_Framework_TestCase { public function setUp() { $this->markTestSkipped('Zend_Auth_Adapter_Ldap online tests not enabled in TestConfiguration.php'); } public function testNothing() { } } if (PHPUnit_MAIN_METHOD === 'Zend_Auth_Adapter_Ldap_AllTests::main') { Zend_Auth_Adapter_Ldap_AllTests::main(); }