SnapshotClass.php 794 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php declare(strict_types=1);
  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. namespace SebastianBergmann\GlobalState\TestFixture;
  11. class SnapshotClass
  12. {
  13. private static $string = 'string';
  14. private static $closures = [];
  15. private static $files = [];
  16. private static $resources = [];
  17. private static $objects = [];
  18. public static function init(): void
  19. {
  20. self::$closures[] = function (): void {
  21. };
  22. self::$files[] = new \SplFileInfo(__FILE__);
  23. self::$resources[] = \fopen('php://memory', 'r');
  24. self::$objects[] = new \stdClass;
  25. }
  26. }