protected function setUp()
 {
     // Gerar array
     $args = [];
     $args['empresa'] = 'netforce';
     $args['dono'] = ['nome' => 'bruno', 'site' => 'www.netforce.com.br'];
     // Gerar arquivo
     $file = __DIR__ . '/tmp.php';
     file_put_contents($file, Arr::toPhpFile($args));
     // Carregar arquivo
     $this->config = (require $file);
     unlink($file);
 }
Exemple #2
0
 /**
  * URL base da conexão.
  * @return string
  */
 public function getBaseUrl()
 {
     return Arr::get($this->config, 'base_url', '');
 }