MockCodeIgniter example

/** * Loads up an instance of CodeIgniter * and gets the environment setup. * * @return CodeIgniter */
    protected function createApplication()
    {
        // Initialize the autoloader.         Services::autoloader()->initialize(new Autoload()new Modules());

        $app = new MockCodeIgniter(new App());
        $app->initialize();

        return $app;
    }

    /** * Return first matching emitted header. */
    protected function getHeaderEmitted(string $header, bool $ignoreCase = false, string $method = __METHOD__): ?string
    {
        if (function_exists('xdebug_get_headers')) {
            
Home | Imprint | This part of the site doesn't use cookies.