geocoder = new Geocoder(); } public function testGeocodeInstance(): void { $this->assertInstanceOf(\Pcm\GeocodeBundle\Geocoder::class, $this->geocoder); } public function testGeocodePostcodeThrowsOnInvalidInput(): void { sleep(1); $this->expectException(\Exception::class); $this->geocoder->geocodePostcode('aaaaaaaa'); } public function testGeocodePostcodeReturnsGeocodeObject(): void { sleep(1); $result = $this->geocoder->geocodePostcode(self::POSTCODE); $this->assertInstanceOf(GeocodeData::class, $result); } private function getMappableEntity(): MappableInterface { return new class implements MappableInterface { use MappableTrait; }; } }