Chris@2: Chris@2: * Chris@2: * For the full copyright and license information, please view the LICENSE Chris@2: * file that was distributed with this source code. Chris@2: */ Chris@2: Chris@2: namespace SebastianBergmann\ObjectEnumerator\Fixtures; Chris@2: Chris@2: use RuntimeException; Chris@2: Chris@2: class ExceptionThrower Chris@2: { Chris@2: private $property; Chris@2: Chris@2: public function __construct() Chris@2: { Chris@2: unset($this->property); Chris@2: } Chris@2: Chris@2: public function __get($property) Chris@2: { Chris@2: throw new RuntimeException; Chris@2: } Chris@2: }