Пример #1
0
 public function setUp()
 {
     parent::setUp();
     $this->flights = new Flights($this->API_KEY);
     $dateTimeFormat = '%Y-%m';
     //        $outboundDateTime = Date($dateTimeFormat);
     //        $inboundDateTime = Date($dateTimeFormat, strtotime("+31 days", $outboundDateTime));
     $this->outbound = strftime($dateTimeFormat, time());
     $this->inbound = strftime($dateTimeFormat, strtotime("+31 days"));
     //        $inboundDateTime = Date($dateTimeFormat, strtotime("+3 days", $outboundDateTime));
     $dateTimeFormat = '%Y-%m-%d';
     $this->outboundDays = strftime($dateTimeFormat, time() + 60 * 60 * 24 * 30);
     //Date($dateTimeFormat));
     $this->inboundDays = strftime($dateTimeFormat, time() + 60 * 60 * 24 * 37);
     //Date($dateTimeFormat));
     //        var_dump($this);
     //        $this->outboundDays = Date($dateTimeFormat, strtotime($this->outboundDays . ' + 30 days'));
     //        $this->inboundDays = Date($dateTimeFormat, strtotime($this->inboundDays . ' + 37 days'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->transport = new Transport($this->API_KEY);
 }