Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120834776
Ldap.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
845 B
Referenced Files
None
Subscribers
None
Ldap.php
View Options
<?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.'
);
}
// skip test if php-ldap is not available
if
(!
extension_loaded
(
'ldap'
))
{
$this
->
markTestSkipped
(
'The ldap extension is 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
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 1:08 PM (6 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1b/f6/a7d25e8d75df17a230a077d27b6a
Default Alt Text
Ldap.php (845 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline