| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 7 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | View Code Duplication | public function testGetWebhookParams() |
|
| 27 | { |
||
| 28 | $this->mockHttpSession($this->body_list_webhook_all_filters); |
||
| 29 | $webhooks = $this->moip->webhooks()->get(new Pagination(10, 0), 'ORD-EE5XP23RMLSS', 'ORDER.PAID'); |
||
| 30 | |||
| 31 | $this->assertNotEmpty($webhooks->getWebhooks()); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: