Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1819266
PDOMySQLTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
827 B
Subscribers
None
PDOMySQLTest.php
View Options
<?php
namespace
Sabre\DAV\Auth\Backend
;
require_once
'Sabre/TestUtil.php'
;
class
PDOMySQLTest
extends
AbstractPDOTest
{
function
getPDO
()
{
if
(!
SABRE_HASMYSQL
)
$this
->
markTestSkipped
(
'MySQL driver is not available, or not properly configured'
);
$pdo
=
\Sabre\TestUtil
::
getMySQLDB
();
if
(!
$pdo
)
$this
->
markTestSkipped
(
'Could not connect to MySQL database'
);
$pdo
->
query
(
"DROP TABLE IF EXISTS users"
);
$pdo
->
query
(
"
create table users (
id integer unsigned not null primary key auto_increment,
username varchar(50),
digesta1 varchar(32),
email varchar(80),
displayname varchar(80),
unique(username)
);"
);
$pdo
->
query
(
"INSERT INTO users (username,digesta1,email,displayname) VALUES ('user','hash','user@example.org','User')"
);
return
$pdo
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Dec 21, 10:52 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914368
Default Alt Text
PDOMySQLTest.php (827 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment