Page MenuHomePhabricator

PDOMySQLTest.php
No OneTemporary

PDOMySQLTest.php

<?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

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)

Event Timeline