resetSilentMode() public method

NOTE: it is up to each plugin in turn whether or not to support 'silent' mode at all
public resetSilentMode ( ) : void
return void
Exemplo n.º 1
0
 /**
  * @covers DataSift\Storyplayer\Output::resetSilentMode()
  */
 public function testCanResetSilentMode()
 {
     // ----------------------------------------------------------------
     // setup the test
     $plugin1 = Mockery::mock("DataSift\\Storyplayer\\OutputLib\\OutputPlugin");
     $plugin1->shouldReceive('resetSilentMode')->once();
     $plugin2 = Mockery::mock("DataSift\\Storyplayer\\OutputLib\\OutputPlugin");
     $plugin2->shouldReceive('resetSilentMode')->once();
     $obj = new Output();
     $obj->usePluginInSlot($plugin1, "console");
     $obj->usePluginInSlot($plugin2, "slot1");
     // ----------------------------------------------------------------
     // perform the change
     $obj->resetSilentMode();
     // ----------------------------------------------------------------
     // test the results
     Mockery::close();
 }