function it_gets_province_name_by_its_code(ProvinceNamingProviderInterface $provinceNamingProvider) { $provinceNamingProvider->getName('IE-UL')->willReturn('Ulster'); $this->getProvinceName('IE-UL')->shouldReturn('Ulster'); }
/** * @param string $provinceCode * * @return string */ public function getProvinceName($provinceCode) { return $this->provinceNamingProvider->getName($provinceCode); }
function it_gets_province_name_by_its_code(ProvinceNamingProviderInterface $provinceNamingProvider, AddressInterface $address) { $provinceNamingProvider->getName($address)->willReturn('Ulster'); $this->getProvinceName($address)->shouldReturn('Ulster'); }