APITest::setUp PHP Method

setUp() protected method

protected setUp ( )
    protected function setUp()
    {
        $this->config = parse_ini_file("../halite.ini", true);
        $this->mysqli = new mysqli($this->config['database']['hostname'], $this->config['database']['username'], $this->config['database']['password'], $this->config['database']['name']);
        if (mysqli_connect_errno()) {
            echo "<br><br>There seems to be a problem with our database. Reload the page or try again later.";
            exit;
        }
    }