DataSift\Storyplayer\OutputTest::testCanLogVardump PHP Method

testCanLogVardump() public method

public testCanLogVardump ( )
    public function testCanLogVardump()
    {
        // ----------------------------------------------------------------
        // setup the test
        $name = 'msg';
        $msg = "this is an emergency, damnit!";
        $plugin1 = Mockery::mock("DataSift\\Storyplayer\\OutputLib\\OutputPlugin");
        $plugin1->shouldReceive('logVardump')->once()->with($name, $msg);
        $plugin2 = Mockery::mock("DataSift\\Storyplayer\\OutputLib\\OutputPlugin");
        $plugin2->shouldReceive('logVardump')->once()->with($name, $msg);
        $obj = new Output();
        $obj->usePluginInSlot($plugin1, "console");
        $obj->usePluginInSlot($plugin2, "slot1");
        // ----------------------------------------------------------------
        // perform the change
        $obj->logVardump($name, $msg);
        // ----------------------------------------------------------------
        // test the results
        Mockery::close();
    }