Пример #1
0
 /**
  * @throws \Exception
  *
  * @return self
  */
 public function isDateSelected()
 {
     $value = $this->datePicker(['getDate']);
     $date = $this->execute($this->date);
     $this->context->debug(["Comparing {$value} with {$date}"]);
     if ($value !== $date) {
         throw new \Exception(sprintf('DatePicker contains the "%s" but should "%s".', $value, $date));
     }
     return $this;
 }