boot(); $this->geocoder = $kernel->getContainer()->get('pcm_geocode.geocoder'); } public function testGeocodeInstance(): void { $this->assertInstanceOf(Geocoder::class, $this->geocoder); } public function testGeocodePostcodeReturnsNullOnInvalidInput(): void { sleep(1); $this->assertNull($this->geocoder->geocodePostcode('')); } public function testGeocodePostcodeReturnsGeoCoordinates(): void { sleep(1); $result = $this->geocoder->geocodePostcode(self::POSTCODE); $this->assertInstanceOf(GeoCoordinates::class, $result); } private function getMappableEntity(): MappableInterface { return new class implements MappableInterface { use MappableTrait; }; } }