Geocoder\Laravel\Tests\Laravel5_3\Providers\GeocoderServiceTest::testItThrowsAnExceptionForInvalidDumper PHP Method

testItThrowsAnExceptionForInvalidDumper() public method

    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);
    }