public testItThrowsAnExceptionForInvalidDumper ( ) |
public function testItThrowsAnExceptionForInvalidDumper()
{
$this->expectException(InvalidDumperException::class);
$result = app('geocoder')->using('google_maps')->geocode('1600 Pennsylvania Ave., Washington, DC USA')->dump('test');
$jsonAddress = json_decode($result->first());
$this->assertEquals('1600', $jsonAddress->properties->streetNumber);
}