DataSift\Storyplayer\Output::disableColourSupport PHP Method

disableColourSupport() public method

disables any colour output
public disableColourSupport ( ) : void
return void
    public function disableColourSupport()
    {
        foreach ($this->plugins as $plugin) {
            $plugin->disableColourSupport();
        }
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @covers DataSift\Storyplayer\Output::disableColourSupport()
  */
 public function testCanDisableColourSupport()
 {
     // ----------------------------------------------------------------
     // setup the test
     $plugin1 = Mockery::mock("DataSift\\Storyplayer\\OutputLib\\OutputPlugin");
     $plugin1->shouldReceive('disableColourSupport')->once();
     $plugin2 = Mockery::mock("DataSift\\Storyplayer\\OutputLib\\OutputPlugin");
     $plugin2->shouldReceive('disableColourSupport')->once();
     $obj = new Output();
     $obj->usePluginInSlot($plugin1, "console");
     $obj->usePluginInSlot($plugin2, "slot1");
     // ----------------------------------------------------------------
     // perform the change
     $obj->disableColourSupport();
     // ----------------------------------------------------------------
     // test the results
     Mockery::close();
 }