function testBaseOverride() { $url = 'login'; if ($this->app->get('flight.base_url') !== null) { $base = $this->app->get('flight.base_url'); } else { $base = $this->app->request()->base; } $this->assertEquals('/testdir/login', $this->getBaseUrl($base, $url)); }
function testClearAll() { $this->app->set('c', 1); $this->app->clear(); $var = $this->app->get('c'); $this->assertEquals(null, $var); }