DataSift\Storyplayer\OutputTest::testCanAddAnOutputPlugin PHP Method

testCanAddAnOutputPlugin() public method

    public function testCanAddAnOutputPlugin()
    {
        // ----------------------------------------------------------------
        // setup the test
        $obj = new Output();
        $slotName = "unit-test";
        $origPlugin = Mockery::mock('DataSift\\Storyplayer\\OutputLib\\OutputPlugin');
        // ----------------------------------------------------------------
        // perform the change
        $obj->usePluginInSlot($origPlugin, $slotName);
        // ----------------------------------------------------------------
        // test the results
        $activePlugin = $obj->getActivePluginInSlot($slotName);
        $this->assertSame($origPlugin, $activePlugin);
        Mockery::close();
    }