SnapshotClass.php 1017 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /*
  3. * This file is part of sebastian/global-state.
  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. declare(strict_types=1);
  11. namespace SebastianBergmann\GlobalState\TestFixture;
  12. use DomDocument;
  13. use ArrayObject;
  14. class SnapshotClass
  15. {
  16. private static $string = 'snapshot';
  17. private static $dom;
  18. private static $closure;
  19. private static $arrayObject;
  20. private static $snapshotDomDocument;
  21. private static $resource;
  22. private static $stdClass;
  23. public static function init()
  24. {
  25. self::$dom = new DomDocument();
  26. self::$closure = function () {};
  27. self::$arrayObject = new ArrayObject([1, 2, 3]);
  28. self::$snapshotDomDocument = new SnapshotDomDocument();
  29. self::$resource = \fopen('php://memory', 'r');
  30. self::$stdClass = new \stdClass();
  31. }
  32. }