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

amalfra / supportbee / 21418199063

27 Jan 2026 11:23PM UTC coverage: 26.282% (-2.9%) from 29.134%
21418199063

Pull #7

github

web-flow
Bump phpunit/phpunit from 9.5.26 to 9.6.33

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.26 to 9.6.33.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.33/ChangeLog-9.6.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.26...9.6.33)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-version: 9.6.33
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #7: Bump phpunit/phpunit from 9.5.26 to 9.6.33

41 of 156 relevant lines covered (26.28%)

0.4 hits per line

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

0.0
/src/API/Tickets.php
1
<?php
2

3
namespace Amalfra\SupportBee\API;
4

5
use \InvalidArgumentException;
6
use Amalfra\SupportBee\HTTP;
7

8
/**
9
 * Class Tickets
10
 *
11
 * @package Amalfra\SupportBee\API;
12
 */
13
class Tickets extends HTTP {
14
  public static function tickets($options = array()) {
15
    self::validate($options, array(
×
16
      'per_page', 'page', 'archived', 'spam',
×
17
      'trash', 'replies', 'max_replies', 'assigned_user',
×
18
      'assigned_team', 'starred', 'label', 'since',
×
19
      'until', 'sort_by', 'requester_emails', 'total_only'
×
20
    ));
×
21

22
    return self::process_request('tickets', $options);
×
23
  }
24

25
  public static function get_ticket($id = 0) {
26
    return self::process_request('tickets/'.$id);
×
27
  }
28

29
  public static function search($options = array()) {
30
    self::validate($options, array(
×
31
      'per_page', 'page', 'spam',
×
32
      'trash', 'query'
×
33
    ), array('query'));
×
34

35
    return self::process_request('tickets/search', $options);
×
36
  }
37

38
  public static function create_ticket($options = array()) {
39
    self::validate($options, array(
×
40
      'subject', 'requester_name', 'requester_email', 'cc', 'copied_emails', 'bcc',
×
41
      'notify_requester', 'content', 'attachment_ids', 'forwarding_address_id'
×
42
    ), array('subject', 'requester_name', 'requester_email', 'content'));
×
43

44
    return self::process_request('tickets/', array('ticket' => $options), 'POST');
×
45
  }
46

47
  public static function delete_ticket($id = 0) {
48
    return self::process_request('tickets/'.$id, array(), 'DELETE');
×
49
  }
50

51
  public static function archive_ticket($id = 0) {
52
    return self::process_request('tickets/'.$id.'/archive', array(), 'POST');
×
53
  }
54

55
  public static function unarchive_ticket($id = 0) {
56
    return self::process_request('tickets/'.$id.'/archive', array(), 'DELETE');
×
57
  }
58

59
  public static function assign_ticket($id = 0, $options = array()) {
60
    if (!is_array($options) || !is_int($id)) {
×
61
      throw new InvalidArgumentException('Invalid type of Parameters passed');
×
62
    }
63

64
    return self::process_request('tickets/'.$id.'/assignments', array('assignment' => $options), 'POST' );
×
65
  }
66

67
  public static function star_ticket($id = 0) {
68
    return self::process_request('tickets/'.$id.'/star', array(), 'POST');
×
69
  }
70

71
  public static function unstar_ticket($id = 0) {
72
    return self::process_request('tickets/'.$id.'/star', array(), 'DELETE');
×
73
  }
74

75
  public static function spam_ticket($id = 0) {
76
    return self::process_request('tickets/'.$id.'/spam', array(), 'POST');
×
77
  }
78

79
  public static function unspam_ticket($id = 0) {
80
    return self::process_request('tickets/'.$id.'/spam', array(), 'DELETE');
×
81
  }
82

83
  public static function trash_ticket($id = 0) {
84
    return self::process_request('tickets/'.$id.'/trash', array(), 'POST');
×
85
  }
86

87
  public static function untrash_ticket($id = 0) {
88
    return self::process_request('tickets/'.$id.'/trash', array(), 'DELETE');
×
89
  }
90

91
  public static function add_label($id, $label) {
92
    return self::process_request('tickets/'.$id.'/labels/'.$label, array(), 'POST');
×
93
  }
94

95
  public static function remove_label($id, $label) {
96
    return self::process_request('tickets/'.$id.'/labels/'.$label, array(), 'DELETE');
×
97
  }
98
}
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