public function cleanUp($performDeepCleanUp = false)
    {
        $this->cleanUpTableSet(false, $performDeepCleanUp);
        $this->cleanUpTableSet(true, $performDeepCleanUp);
        $this->deleteAllDummyFoldersAndFiles();
        $this->discardFakeFrontEnd();

        foreach ($this->getHooks() as $hook) {
            if (!($hook instanceof \Tx_Phpunit_Interface_FrameworkCleanupHook)) {
                throw new Exception(
                    'The class ' . get_class($hook) . ' must implement \\Tx_Phpunit_Interface_FrameworkCleanupHook.',
                    1299257923
                );
            }
            /** @var \Tx_Phpunit_Interface_FrameworkCleanupHook $hook */
            $hook->cleanUp();
        }

        RootlineUtility::purgeCaches();
    }