1<?php
2/**
3 * Prepare the test setup.
4 */
5require_once dirname(__FILE__) . '/Base.php';
6
7/**
8 * Copyright 2012-2017 Horde LLC (http://www.horde.org/)
9 *
10 * @author     Jan Schneider <jan@horde.org>
11 * @category   Horde
12 * @package    Horde_SessionHandler
13 * @subpackage UnitTests
14 * @license    http://www.horde.org/licenses/lgpl21 LGPL 2.1
15 */
16class Horde_SessionHandler_Storage_FileTest extends Horde_SessionHandler_Storage_Base
17{
18    public function testWrite()
19    {
20        $this->_write();
21    }
22
23    /**
24     * @depends testWrite
25     */
26    public function testRead()
27    {
28        $this->_read();
29    }
30
31    /**
32     * @depends testWrite
33     */
34    public function testReopen()
35    {
36        $this->_reopen();
37    }
38
39    /**
40     * @depends testWrite
41     */
42    public function testList()
43    {
44        $this->_list();
45    }
46
47    /**
48     * @depends testList
49     */
50    public function testDestroy()
51    {
52        $this->_destroy();
53    }
54
55    /**
56     * @depends testDestroy
57     */
58    public function testGc()
59    {
60        $this->_gc();
61    }
62
63    public static function setUpBeforeClass()
64    {
65        parent::setUpBeforeClass();
66        self::$handler = new Horde_SessionHandler_Storage_File(array('path' => self::$dir));
67    }
68}
69