Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1818048
AbstractPDOTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
654 B
Subscribers
None
AbstractPDOTest.php
View Options
<?php
namespace
Sabre\DAV\Auth\Backend
;
use
Sabre\DAV
;
abstract
class
AbstractPDOTest
extends
\PHPUnit_Framework_TestCase
{
abstract
function
getPDO
();
function
testConstruct
()
{
$pdo
=
$this
->
getPDO
();
$backend
=
new
PDO
(
$pdo
);
$this
->
assertTrue
(
$backend
instanceof
PDO
);
}
/**
* @depends testConstruct
*/
function
testUserInfo
()
{
$pdo
=
$this
->
getPDO
();
$backend
=
new
PDO
(
$pdo
);
$this
->
assertNull
(
$backend
->
getDigestHash
(
'realm'
,
'blabla'
));
$expected
=
'hash'
;
$this
->
assertEquals
(
$expected
,
$backend
->
getDigestHash
(
'realm'
,
'user'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Dec 21, 5:24 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914604
Default Alt Text
AbstractPDOTest.php (654 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment