| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | function can_format_input_for_querying_api() |
||
| 28 | { |
||
| 29 | $format = [ |
||
| 30 | 'data' => [ |
||
| 31 | 'image' => [ |
||
| 32 | 'url' => 'valid-url', |
||
| 33 | ] |
||
| 34 | ] |
||
| 35 | ]; |
||
| 36 | |||
| 37 | $input = Input::fromUrl('valid-url'); |
||
| 38 | |||
| 39 | $this->assertEquals($format, $input->format()); |
||
| 40 | $this->assertTrue(is_array($input->format())); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.