菜谱项目

SnapshotClass.php 946B

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