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

stripe / stripe-php / 6471862601

10 Oct 2023 04:02PM UTC coverage: 69.665% (-0.5%) from 70.141%
6471862601

push

github

web-flow
Merge pull request #1570 from localheinz/feature/coveralls

Enhancement: Use `coverallsapp/github-action` to report code coverage

2393 of 3435 relevant lines covered (69.67%)

3.5 hits per line

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

0.0
/lib/Service/TestHelpers/TestClockService.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service\TestHelpers;
6

7
class TestClockService extends \Stripe\Service\AbstractService
8
{
9
    /**
10
     * Starts advancing a test clock to a specified time in the future. Advancement is
11
     * done when status changes to <code>Ready</code>.
12
     *
13
     * @param string $id
14
     * @param null|array $params
15
     * @param null|array|\Stripe\Util\RequestOptions $opts
16
     *
17
     * @throws \Stripe\Exception\ApiErrorException if the request fails
18
     *
19
     * @return \Stripe\TestHelpers\TestClock
20
     */
21
    public function advance($id, $params = null, $opts = null)
×
22
    {
23
        return $this->request('post', $this->buildPath('/v1/test_helpers/test_clocks/%s/advance', $id), $params, $opts);
×
24
    }
25

26
    /**
27
     * Returns a list of your test clocks.
28
     *
29
     * @param null|array $params
30
     * @param null|array|\Stripe\Util\RequestOptions $opts
31
     *
32
     * @throws \Stripe\Exception\ApiErrorException if the request fails
33
     *
34
     * @return \Stripe\Collection<\Stripe\TestHelpers\TestClock>
35
     */
36
    public function all($params = null, $opts = null)
×
37
    {
38
        return $this->requestCollection('get', '/v1/test_helpers/test_clocks', $params, $opts);
×
39
    }
40

41
    /**
42
     * Creates a new test clock that can be attached to new customers and quotes.
43
     *
44
     * @param null|array $params
45
     * @param null|array|\Stripe\Util\RequestOptions $opts
46
     *
47
     * @throws \Stripe\Exception\ApiErrorException if the request fails
48
     *
49
     * @return \Stripe\TestHelpers\TestClock
50
     */
51
    public function create($params = null, $opts = null)
×
52
    {
53
        return $this->request('post', '/v1/test_helpers/test_clocks', $params, $opts);
×
54
    }
55

56
    /**
57
     * Deletes a test clock.
58
     *
59
     * @param string $id
60
     * @param null|array $params
61
     * @param null|array|\Stripe\Util\RequestOptions $opts
62
     *
63
     * @throws \Stripe\Exception\ApiErrorException if the request fails
64
     *
65
     * @return \Stripe\TestHelpers\TestClock
66
     */
67
    public function delete($id, $params = null, $opts = null)
×
68
    {
69
        return $this->request('delete', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
×
70
    }
71

72
    /**
73
     * Retrieves a test clock.
74
     *
75
     * @param string $id
76
     * @param null|array $params
77
     * @param null|array|\Stripe\Util\RequestOptions $opts
78
     *
79
     * @throws \Stripe\Exception\ApiErrorException if the request fails
80
     *
81
     * @return \Stripe\TestHelpers\TestClock
82
     */
83
    public function retrieve($id, $params = null, $opts = null)
×
84
    {
85
        return $this->request('get', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
×
86
    }
87
}
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