Mercurial > hg > cmmr2012-drupal-site
annotate vendor/sebastian/object-enumerator/tests/_fixture/ExceptionThrower.php @ 2:5311817fb629
Theme updates
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 13:19:18 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@2 | 1 <?php |
Chris@2 | 2 /* |
Chris@2 | 3 * This file is part of Object Enumerator. |
Chris@2 | 4 * |
Chris@2 | 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> |
Chris@2 | 6 * |
Chris@2 | 7 * For the full copyright and license information, please view the LICENSE |
Chris@2 | 8 * file that was distributed with this source code. |
Chris@2 | 9 */ |
Chris@2 | 10 |
Chris@2 | 11 namespace SebastianBergmann\ObjectEnumerator\Fixtures; |
Chris@2 | 12 |
Chris@2 | 13 use RuntimeException; |
Chris@2 | 14 |
Chris@2 | 15 class ExceptionThrower |
Chris@2 | 16 { |
Chris@2 | 17 private $property; |
Chris@2 | 18 |
Chris@2 | 19 public function __construct() |
Chris@2 | 20 { |
Chris@2 | 21 unset($this->property); |
Chris@2 | 22 } |
Chris@2 | 23 |
Chris@2 | 24 public function __get($property) |
Chris@2 | 25 { |
Chris@2 | 26 throw new RuntimeException; |
Chris@2 | 27 } |
Chris@2 | 28 } |