Page MenuHomePhabricator

AbstractPDOTest.php
No OneTemporary

AbstractPDOTest.php

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

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)

Event Timeline