ExceptionThrower.php 533 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of Object Enumerator.
  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\ObjectEnumerator\Fixtures;
  11. use RuntimeException;
  12. class ExceptionThrower
  13. {
  14. private $property;
  15. public function __construct()
  16. {
  17. unset($this->property);
  18. }
  19. public function __get($property)
  20. {
  21. throw new RuntimeException;
  22. }
  23. }