DataSift\Storyplayer\OutputTest::testCanSwitchToTheDevModeConsole PHP Метод

testCanSwitchToTheDevModeConsole() публичный Метод

    public function testCanSwitchToTheDevModeConsole()
    {
        // ----------------------------------------------------------------
        // setup the test
        $obj = new Output();
        // ----------------------------------------------------------------
        // perform the change
        $console = new DevModeConsole();
        $obj->usePluginAsConsole($console);
        // ----------------------------------------------------------------
        // test the results
        $activeConsole = $obj->getActiveConsolePlugin();
        $this->assertSame($console, $activeConsole);
    }