Beispiel #1
0
 public function testTypeIdToString()
 {
     $types = array();
     $types[0] = 'text';
     $types[1] = 'multipart';
     $types[2] = 'message';
     $types[3] = 'application';
     $types[4] = 'audio';
     $types[5] = 'image';
     $types[6] = 'video';
     $types[7] = 'other';
     $types[8] = 'other';
     $types[32] = 'other';
     foreach ($types as $id => $type) {
         $this->assertEquals($type, Message::typeIdToString($id));
     }
 }