Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Test/ObjectSerialization.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Test; | |
4 | |
5 /** | |
6 * Object to test that security issues around serialization. | |
7 */ | |
8 class ObjectSerialization { | |
9 | |
10 /** | |
11 * ObjectSerialization constructor. | |
12 */ | |
13 public function __construct() { | |
14 throw new \Exception('This object should never be constructed'); | |
15 } | |
16 | |
17 /** | |
18 * ObjectSerialization deconstructor. | |
19 */ | |
20 public function __destruct() { | |
21 throw new \Exception('This object should never be destructed'); | |
22 } | |
23 | |
24 } |