public exitIfSiteLocked ( ) : void | ||
return | void |
public function exitIfSiteLocked()
{
if ($this->isSiteLocked() === true) {
$this->doExit();
}
}
/** * @test */ public function exitIfSiteLockedDoesNotExitIfSiteIsNotLocked() { $this->lockManager->unlockSite(); $this->lockManager->expects($this->never())->method('doExit'); $this->lockManager->exitIfSiteLocked(); }