function setup()
 {
     if (!SABRE_HASSQLITE) {
         $this->markTestSkipped('SQLite driver is not available');
     }
     $this->pdo = Sabre_CalDAV_TestUtil::getSQLiteDB();
 }
 /**
  * The CalDAV server is a simple script that just composes a
  * Sabre_DAV_Server. All we really have to do is check if the setup
  * is done correctly.
  */
 function testSetup()
 {
     if (!SABRE_HASSQLITE) {
         $this->markTestSkipped('SQLite driver is not available');
     }
     $pdo = Sabre_CalDAV_TestUtil::getSQLiteDB();
     $server = new Sabre_CalDAV_Server($pdo);
     $authPlugin = $server->getPlugin('auth');
     $this->assertTrue($authPlugin instanceof Sabre_DAV_Auth_Plugin);
     $caldavPlugin = $server->getPlugin('caldav');
     $this->assertTrue($caldavPlugin instanceof Sabre_CalDAV_Plugin);
     $node = $server->tree->getNodeForPath('');
     $this->assertTrue($node instanceof Sabre_DAV_SimpleCollection);
     $this->assertEquals('root', $node->getName());
 }