1<?php 2/* 3 * This file is part of the GlobalState package. 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 7 * For the full copyright and license information, please view the LICENSE 8 * file that was distributed with this source code. 9 */ 10 11namespace SebastianBergmann\GlobalState\TestFixture; 12 13use DomDocument; 14use ArrayObject; 15 16/** 17 */ 18class SnapshotClass 19{ 20 private static $string = 'snapshot'; 21 private static $dom; 22 private static $closure; 23 private static $arrayObject; 24 private static $snapshotDomDocument; 25 private static $resource; 26 private static $stdClass; 27 28 public static function init() 29 { 30 self::$dom = new DomDocument(); 31 self::$closure = function () {}; 32 self::$arrayObject = new ArrayObject(array(1, 2, 3)); 33 self::$snapshotDomDocument = new SnapshotDomDocument(); 34 self::$resource = fopen('php://memory', 'r'); 35 self::$stdClass = new \stdClass(); 36 } 37} 38