Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SnapshotClass.php « _fixture « tests « global-state « sebastian « vendor - github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9735818fe10999e2c5ace83820d551f6e663b652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/*
 * This file is part of the GlobalState package.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace SebastianBergmann\GlobalState\TestFixture;

use DomDocument;
use ArrayObject;

/**
 */
class SnapshotClass
{
    private static $string = 'snapshot';
    private static $dom;
    private static $closure;
    private static $arrayObject;
    private static $snapshotDomDocument;
    private static $resource;
    private static $stdClass;

    public static function init()
    {
        self::$dom = new DomDocument();
        self::$closure = function () {};
        self::$arrayObject = new ArrayObject(array(1, 2, 3));
        self::$snapshotDomDocument = new SnapshotDomDocument();
        self::$resource = fopen('php://memory', 'r');
        self::$stdClass = new \stdClass();
    }
}