PharExceptionAsset.php 563 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace DoctrineTest\InstantiatorTestAsset;
  3. use BadMethodCallException;
  4. use PharException;
  5. /**
  6. * Test asset that extends an internal PHP class
  7. * This class should be serializable without problems
  8. * and without getting the "Erroneous data format for unserializing"
  9. * error
  10. */
  11. class PharExceptionAsset extends PharException
  12. {
  13. /**
  14. * Constructor - should not be called
  15. *
  16. * @throws BadMethodCallException
  17. */
  18. public function __construct()
  19. {
  20. throw new BadMethodCallException('Not supposed to be called!');
  21. }
  22. }