I’ve following abstract class and have a question about how to write a unit test for this. Is this in fact needed? As this class doesn’t have any concrete methods.
<?php
abstract class PickupPoint_Abstract {
public function __construct($client) {}
public function getPickupPoints($countryCode, $postalCode, $city) {}
public function getPickupPointDetails($pickupPointId, $countryCode) {} }
No, you don’t need to test it, because there is nothing to test.
By the way abstract methods should be defined like
You made hooks, which may not be overridden.
See Class Abstraction.