public function tearDown()
 {
     echo "ps aux | grep " . $this->appName . " | grep -v grep | grep -v " . end(explode("/", __FILE__)) . " | awk '{print \$2}'";
     exec("ps aux | grep " . $this->appName . " | grep -v grep | grep -v " . end(explode("/", __FILE__)) . " | awk '{print \$2}'", $result, $status);
     if ($status > 0) {
         $this->console('Failed to find child');
         return FAILURE;
     }
     if (is_array($result) && count($result) > 0) {
         exec("kill " . $result[0], $result, $status);
         return FAILURE;
     } else {
         $this->console("Failed to find child. Does the process exist?");
         return FAILURE;
     }
     $this->console("Killed iPhone app proccess");
     return parent::tearDown();
 }
 public function tearDown()
 {
     return parent::tearDown();
 }
 /**
  * @OVERRIDE
  * 
  * Overridden to prevent deletion of custom defined tmpdb
  * 
  * @global type $TESTING_CONFIG
  */
 function tearDown()
 {
     global $TESTING_CONFIG;
     if (!isset($TESTING_CONFIG['database'])) {
         parent::tearDown();
     }
     if (PHP_SAPI != 'cli') {
         DB::set_alternative_database_name(null);
     }
 }