Hirak\Prestissimo\Plugin::disable PHP Method

disable() public method

public disable ( )
    public function disable()
    {
        $this->disabled = true;
    }

Usage Example

Beispiel #1
0
 public function testOnPostDependenciesSolving()
 {
     $plugin = new Plugin();
     $plugin->activate($this->composerp->reveal(), $this->iop->reveal());
     $evp = $this->prophesize('Composer\\Installer\\InstallerEvent');
     $evp->getOperations()->willReturn($this->createDummyOperations());
     // on enabled
     $plugin->onPostDependenciesSolving($evp->reveal());
     // on disabled
     $plugin->disable();
     $evp = $this->prophesize('Composer\\Installer\\InstallerEvent');
     $evp->getOperations()->shouldNotBeCalled();
     $plugin->onPostDependenciesSolving($evp->reveal());
 }