Exemple #1
0
<?php

use Loo\Core\MasterFactory;
use Loo\Data\Settings;
define('ROOT', __DIR__);
include_once 'vendor/autoload.php';
$factory = new MasterFactory();
Settings::setConfig($factory->getDataFactory()->getConfig());
Settings::setErrorHandling();
Settings::setPhpSettings();
 /**
  * @dataProvider urlDataProvider
  * @param string $controller
  * @param string $action
  * @param array  $data
  * @param string $expected
  */
 public function testUrl($controller, $action, $data, $expected)
 {
     Settings::setConfig(new Store(['base_url' => 'http://foo.local/']));
     $this->assertEquals($expected, Helper::url($controller, $action, $data));
 }