DataSift\Storyplayer\Output::enforceColourSupport PHP Méthode

enforceColourSupport() public méthode

forces switching on colour support
public enforceColourSupport ( ) : void
Résultat void
    public function enforceColourSupport()
    {
        foreach ($this->plugins as $plugin) {
            $plugin->enforceColourSupport();
        }
    }

Usage Example

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