• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

littleredbutton / bigbluebutton-api-php / 8048423673

26 Feb 2024 11:55AM UTC coverage: 95.517% (+0.6%) from 94.875%
8048423673

Pull #182

github

SamuelWei
Add errors to PutRecordingTextTrackResponse
Pull Request #182: Add missing tests

0 of 3 new or added lines in 1 file covered. (0.0%)

7 existing lines in 1 file now uncovered.

767 of 803 relevant lines covered (95.52%)

34.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

12.5
/src/Responses/PutRecordingTextTrackResponse.php
1
<?php
2
/**
3
 * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
4
 *
5
 * Copyright (c) 2016-2018 BigBlueButton Inc. and by respective authors (see below).
6
 *
7
 * This program is free software; you can redistribute it and/or modify it under the
8
 * terms of the GNU Lesser General Public License as published by the Free Software
9
 * Foundation; either version 3.0 of the License, or (at your option) any later
10
 * version.
11
 *
12
 * BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
13
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Lesser General Public License along
17
 * with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18
 */
19

20
namespace BigBlueButton\Responses;
21

22
/**
23
 * Class PutRecordingTextTracksResponse.
24
 */
25
class PutRecordingTextTrackResponse extends BaseResponseAsJson
26
{
27
    public const KEY_SUCCESS = 'upload_text_track_success';
28
    public const KEY_FAILED = 'upload_text_track_failed';
29
    public const KEY_EMPTY = 'empty_uploaded_text_track';
30
    public const KEY_NO_RECORDINGS = 'noRecordings';
31
    public const KEY_INVALID_KIND = 'invalidKind';
32
    public const KEY_INVALID_LANG = 'invalidLang';
33
    public const KEY_PARAM_ERROR = 'paramError';
34

35
    public function getRecordID(): string
36
    {
37
        return $this->data->response->recordId;
1✔
38
    }
39

40
    public function isUploadTrackSuccess(): bool
41
    {
UNCOV
42
        return $this->getMessageKey() === self::KEY_SUCCESS;
×
43
    }
44

45
    public function isUploadTrackFailed(): bool
46
    {
UNCOV
47
        return $this->getMessageKey() === self::KEY_FAILED;
×
48
    }
49

50
    public function isUploadTrackEmpty(): bool
51
    {
UNCOV
52
        return $this->getMessageKey() === self::KEY_EMPTY;
×
53
    }
54

55
    public function isNoRecordings(): bool
56
    {
NEW
UNCOV
57
        return $this->getMessageKey() === self::KEY_NO_RECORDINGS;
×
58
    }
59

60
    public function isInvalidLang(): bool
61
    {
NEW
UNCOV
62
        return $this->getMessageKey() === self::KEY_INVALID_LANG;
×
63
    }
64

65
    public function isInvalidKind(): bool
66
    {
NEW
UNCOV
67
        return $this->getMessageKey() === self::KEY_INVALID_KIND;
×
68
    }
69

70
    public function isKeyParamError(): bool
71
    {
UNCOV
72
        return $this->getMessageKey() === self::KEY_PARAM_ERROR;
×
73
    }
74
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc