public function testDir()
 {
     // http://stackoverflow.com/a/21473475/4126114
     $user = posix_getpwuid(posix_getuid());
     $rx1 = new Receiver($this->conMan, $this->rm, $user['dir']);
     $rx1->start();
     // should pass since the user home directory is existant
     $this->assertTrue(true);
     $rx2 = new Receiver($this->conMan, $this->rm, "/random/folder/inexistant/");
     // should not pass since the directory is inexistant
     try {
         $rx2->start();
         // should not pass since the directory is inexistant
         $this->assertTrue(false);
         // shouldnt get here
     } catch (\Exception $e) {
         $this->assertTrue(true);
         // should get here
     }
 }