boot(); $this->geocoder = $kernel->getContainer()->get('pcm_geocode.geocoder'); } public function testGeocodeInstance(): void { $this->assertInstanceOf(Geocoder::class, $this->geocoder); } public function testGeocodePostcodeThrowsOnInvalidInput(): void { sleep(1); $this->expectException(\Exception::class); $this->geocoder->geocodePostcode('aaaaaaaa'); } public function testGeocodePostcodeReturnsLatLonModel(): void { sleep(1); $result = $this->geocoder->geocodePostcode(self::POSTCODE); $this->assertInstanceOf(LatLongModel::class, $result); } private function getMappableEntity(): MappableInterface { return new class implements MappableInterface { use MappableTrait; }; } }