public function testConfigure() { $r = new ApplicationTestWrapper(); $r->get('/', function () { return '/' . options('dev') . '/' . options('another_dev'); }); $r->configure(DEVELOPMENT, function () { set('dev', 'testing'); }); $r->configure(PRODUCTION, function () { set('dev', 'not-testing'); }); $r->configure(DEVELOPMENT, function () { set('another_dev', 'testing'); }); ob_start(); $r->dispatch('/', 'GET'); $o = ob_get_clean(); $this->assertEquals('/testing/testing', $o); }