public function testMouseEvents()
 {
     $expected = array(MouseEvent::CLICK, MouseEvent::DBLCLICK, MouseEvent::MOUSEUP, MouseEvent::MOUSEDOWN, MouseEvent::MOUSEOVER, MouseEvent::MOUSEOUT);
     $this->assertSame($expected, MouseEvent::getMouseEvents());
 }
 /**
  * Gets the "INVALID INFO WINDOW OPEN EVENT" exception.
  *
  * @return \Ivory\GoogleMap\Exception\OverlayException The "INVALID INFO WINDOW OPEN EVENT" exception.
  */
 public static function invalidInfoWindowOpenEvent()
 {
     return new static(sprintf('The only available open event are : %s.', implode(', ', MouseEvent::getMouseEvents())));
 }
 /**
  * Sets the info window open event.
  *
  * @param string $openEvent The info window open event.
  *
  * @throws \Ivory\GoogleMap\Exception\OverlayException If the open event is not valid.
  */
 public function setOpenEvent($openEvent)
 {
     if (!in_array($openEvent, MouseEvent::getMouseEvents())) {
         throw OverlayException::invalidInfoWindowOpenEvent();
     }
     $this->openEvent = $openEvent;
 }