public function getContext()
    {
        $directory = \sys_get_temp_dir().'/ctb-'.\microtime();
        $this->fs->mkdir($directory);
        $this->write($directory);

        $result = new Context($directory, $this->format, $this->fs);
        $result->setCleanup(true);

        return $result;
    }