| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | function testCalculateRates() { |
||
| 23 | $method = $this->objFromFixture("DistanceShippingMethod", "ds"); |
||
| 24 | $this->assertEquals(234, |
||
| 25 | $method->calculateRate( |
||
| 26 | new ShippingPackage(), |
||
| 27 | $this->objFromFixture("Address", "customeraddress1") |
||
| 28 | ) |
||
| 29 | ); |
||
| 30 | $this->assertEquals(567, |
||
| 31 | $method->calculateRate( |
||
| 32 | new ShippingPackage(), |
||
| 33 | $this->objFromFixture("Address", "customeraddress2") |
||
| 34 | ) |
||
| 35 | ); |
||
| 36 | } |
||
| 37 | |||
| 38 | } |
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.