/**
  * Set up test environment.
  */
 public function setUp()
 {
     parent::setUp();
     $this->structure = new WritersStructure();
     if (!class_exists("{$this->namespace}Writer", false)) {
         $this->structure->build();
     }
     // Managers
     $this->base_writers_manager_reflection = new ReflectionClass("{$this->namespace}Manager\\Base\\Writers");
     $this->writers_manager_reflection = new ReflectionClass("{$this->namespace}Manager\\Writers");
     $this->base_books_manager_reflection = new ReflectionClass("{$this->namespace}Manager\\Base\\Books");
     $this->books_manager_reflection = new ReflectionClass("{$this->namespace}Manager\\Books");
     $this->base_chapters_manager_reflection = new ReflectionClass("{$this->namespace}Manager\\Base\\Chapters");
     $this->chapters_manager_reflection = new ReflectionClass("{$this->namespace}Manager\\Chapters");
     // Collections
     $this->base_writers_collection_reflection = new ReflectionClass("{$this->namespace}Collection\\Base\\Writers");
     $this->writers_collection_reflection = new ReflectionClass("{$this->namespace}Collection\\Writers");
     $this->base_books_collection_reflection = new ReflectionClass("{$this->namespace}Collection\\Base\\Books");
     $this->books_collection_reflection = new ReflectionClass("{$this->namespace}Collection\\Books");
     $this->base_chapters_collection_reflection = new ReflectionClass("{$this->namespace}Collection\\Base\\Chapters");
     $this->chapters_collection_reflection = new ReflectionClass("{$this->namespace}Collection\\Chapters");
     // Types
     $this->base_writer_reflection = new ReflectionClass("{$this->namespace}Base\\Writer");
     $this->writer_reflection = new ReflectionClass("{$this->namespace}Writer");
     $this->base_book_reflection = new ReflectionClass("{$this->namespace}Base\\Book");
     $this->book_reflection = new ReflectionClass("{$this->namespace}Book");
     $this->base_chapter_reflection = new ReflectionClass("{$this->namespace}Base\\Chapter");
     $this->chapter_reflection = new ReflectionClass("{$this->namespace}Chapter");
 }
 /**
  * @param string|null $base_class_extends
  */
 public function __construct($base_class_extends = null)
 {
     if ($base_class_extends) {
         $this->setConfig('base_class_extends', $base_class_extends);
     }
     parent::__construct();
 }
 /**
  * @param string|null $add_permissions
  */
 public function __construct($add_permissions = null)
 {
     $this->add_permissions = $add_permissions;
     parent::__construct();
 }