public function testWrongAdapter()
{
$app = new Application(new Config(array('adapter' => 'err')));
$app->add(new DummyCommand());
$app->setAutoExit(false);
$output = new BufferedOutput();
$code = $app->run(new StringInput("dummy"), $output);
$this->assertSame(1, $code);
$this->assertContains('Adapter `err` is not one of cli or fastcgi', $output->fetch());
}