public function testEpochReturnsTypeInt()
 {
     $result = DateFormat::epoch();
     $this->assertInternalType('int', $result);
 }
Beispiel #2
0
 /**
  * @param Bookmark[] $bookmarks
  * @param array      $extra
  *
  * @return array
  */
 private static function getTableRows($bookmarks, $extra = array())
 {
     $rows = array();
     foreach ($bookmarks as $key => $bm) {
         $row = array($key, $bm->shortcut, $bm->description, $bm->command, $bm->hit_count, $bm->ts_modified === '' ? 'never' : DateFormat::epochDate($bm->ts_modified, DateFormat::BIG));
         foreach ($extra as $key) {
             $row[] = $bm->extra($key);
         }
         $rows[] = $row;
     }
     return $rows;
 }