/**
* @covers DataSift\Storyplayer\Output::usePluginAsConsole()
*/
public function testCanSwitchToAnyConsole()
{
// ----------------------------------------------------------------
// setup the test
$obj = new Output();
$console = Mockery::mock('DataSift\\Storyplayer\\Console\\Console');
// ----------------------------------------------------------------
// perform the change
$obj->usePluginAsConsole($console);
// ----------------------------------------------------------------
// test the results
$activeConsole = $obj->getActiveConsolePlugin();
$this->assertSame($console, $activeConsole);
Mockery::close();
}