Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | function testGetEstimates() { |
||
|
|||
10 | $order = new Order(); |
||
11 | $address = new Address(); |
||
12 | $package = new ShippingPackage(2); |
||
13 | $estimator = new ShippingEstimator($order, $address); |
||
14 | |||
15 | $options = $estimator->getShippingMethods(); |
||
16 | $this->assertNotNull($options, "options found"); |
||
17 | |||
18 | $estimates = $estimator->getEstimates(); |
||
19 | $this->assertNotNull($estimates, "estimates found"); |
||
20 | } |
||
21 | |||
22 | } |
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.