isWatchAllowed() public method

Returns if WATCH is allowed in the current state.
public isWatchAllowed ( ) : boolean
return boolean
 /**
  * @group disconnected
  */
 public function testIsWatchAllowed()
 {
     $state = new MultiExecState();
     $this->assertFalse($state->isWatchAllowed());
     $state->flag(MultiExecState::INITIALIZED);
     $this->assertTrue($state->isWatchAllowed());
     $state->flag(MultiExecState::CAS);
     $this->assertFalse($state->isWatchAllowed());
     $state->unflag(MultiExecState::CAS);
     $this->assertTrue($state->isWatchAllowed());
 }