public function executeCreateBooking(sfWebRequest $request)
 {
     if ($this->getUser()->isAuthenticated()) {
         $app = Doctrine_Core::getTable('Apartment')->find($request->getPostParameter('apid'));
         $date_from = $request->getPostParameter('date_from');
         $date_to = $request->getPostParameter('date_to');
         $pax = $request->getPostParameter('pax');
         $booking = new Booking();
         $booking->Apartment = $app;
         $booking->pax = $pax;
         $booking->date_from = $date_from;
         $booking->date_to = $date_to;
         $booking->DoBooking($this->getUser()->getGuardUser());
         $this->success = true;
     } else {
         return sfView::NONE;
         /* Log this !*/
     }
 }
<?php

require_once dirname(__FILE__) . '/../bootstrap/unit.php';
$t = new lime_test(1);
$t->is(Booking::DoBooking('time', 3, 3, 3), false, 'Response ');
/* $t->pass('Info'); */