set() public method

Sets a variable.
public set ( mixed $key, string $value = null )
$key mixed Key
$value string Value
Beispiel #1
0
 function setUp()
 {
     $this->app = new \flight\Engine();
     $this->app->set('flight.views.path', __DIR__ . '/views');
 }
Beispiel #2
0
 function setUp()
 {
     $_SERVER['SCRIPT_NAME'] = '/subdir/index.html';
     $this->app = new \flight\Engine();
     $this->app->set('flight.base_url', '/testdir');
 }
Beispiel #3
0
 function testHas()
 {
     $this->app->set('d', 1);
     $this->assertTrue($this->app->has('d'));
 }
 function setUp()
 {
     putenv('SCRIPT_NAME=/subdir/index.php');
     $this->app = new \flight\Engine();
     $this->app->set('flight.base_url', '/testdir');
 }