You are here

class ObjectSerialization in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization

Object to test that security issues around serialization.

Hierarchy

Expanded class hierarchy of ObjectSerialization

1 string reference to 'ObjectSerialization'
ConfigSingleImportExportTest::testImport in core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
Tests importing a single configuration file.

File

core/lib/Drupal/Core/Test/ObjectSerialization.php, line 8

Namespace

Drupal\Core\Test
View source
class ObjectSerialization {

  /**
   * ObjectSerialization constructor.
   */
  public function __construct() {
    throw new \Exception('This object should never be constructed');
  }

  /**
   * ObjectSerialization deconstructor.
   */
  public function __destruct() {
    throw new \Exception('This object should never be destructed');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ObjectSerialization::__construct public function ObjectSerialization constructor.
ObjectSerialization::__destruct public function ObjectSerialization deconstructor.