Page MenuHomePhorge

Ldap.php
No OneTemporary

Size
667 B
Referenced Files
None
Subscribers
None

Ldap.php

<?php
/**
* Test class to test rcube_ldap class
*
* @package Tests
*/
class Framework_Ldap extends PHPUnit\Framework\TestCase
{
/**
* Class constructor
*/
function test_class()
{
// skip test if Net_LDAP3 does not exist
if (!class_exists('Net_LDAP3')) {
$this->markTestSkipped('The Net_LDAP3 package not available.');
}
StdErrMock::start();
$object = new rcube_ldap([]);
StdErrMock::stop();
$this->assertInstanceOf('rcube_ldap', $object, "Class constructor");
$this->assertSame('ERROR: Could not connect to any LDAP server', trim(StderrMock::$output));
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, May 1, 2:05 PM (3 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
602964
Default Alt Text
Ldap.php (667 B)

Event Timeline