Münster 48143 Hafenstr/Ecke Friedrich-Ebert-Str BUS False True True '; $filesystem = $this->createMock(FilesystemOperator::class); $filesystem->expects($this->once()) ->method('read') ->with('zustiege.xml') ->willReturn($xmlContent); $cache = new ArrayAdapter(); $loader = new PickupLoader($cache, $filesystem); $pickup = $loader->loadById(1); $this->assertInstanceOf(Pickup::class, $pickup); $this->assertEquals(1, $pickup->id); $this->assertEquals('MS-Hbf', $pickup->code); $this->assertEquals('Münster', $pickup->city); $this->assertEquals('48143', $pickup->postalCode); $this->assertEquals('Hafenstr/Ecke Friedrich-Ebert-Str', $pickup->street); } }