DataSift\Storyplayer\OutputTest::testCanSwitchToAnyConsole PHP Method

testCanSwitchToAnyConsole() public method

    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();
    }