File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
tests/Geocoder/Tests/Model Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Geocoder \Tests \Model ;
4
+
5
+ use Geocoder \Model \Address ;
6
+
7
+ class AddressTest extends \PHPUnit_Framework_TestCase
8
+ {
9
+ public function testDumpEmptyAddress ()
10
+ {
11
+ $ expected = array (
12
+ 'latitude ' => NULL ,
13
+ 'longitude ' => NULL ,
14
+ 'bounds ' => array (
15
+ 'south ' => NULL ,
16
+ 'west ' => NULL ,
17
+ 'north ' => NULL ,
18
+ 'east ' => NULL ,
19
+ ),
20
+ 'streetNumber ' => NULL ,
21
+ 'streetName ' => NULL ,
22
+ 'postalCode ' => NULL ,
23
+ 'locality ' => NULL ,
24
+ 'subLocality ' => NULL ,
25
+ 'adminLevels ' => array (),
26
+ 'country ' => NULL ,
27
+ 'countryCode ' => NULL ,
28
+ 'timezone ' => NULL ,
29
+ );
30
+
31
+ $ address = new Address ();
32
+ $ this ->assertEquals ($ address ->toArray (), $ expected );
33
+ }
34
+ }
You can’t perform that action at this time.
0 commit comments