Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testText() { |
||
27 | |||
28 | $adr = [ |
||
29 | 'pobox' => '', |
||
30 | 'ext' => '', |
||
31 | 'street' => '2 Example Avenue', |
||
32 | 'locality' => 'Anytown', |
||
33 | 'region' => 'Foo', |
||
34 | 'code' => '01111', |
||
35 | 'country' => 'Bar' |
||
36 | ]; |
||
37 | |||
38 | $instance = new Address( '', $adr ); |
||
39 | |||
40 | $this->assertSame( |
||
41 | "ADR;TYPE=WORK;CHARSET=UTF-8:;;2 Example Avenue;Anytown;Foo;01111;Bar\r\n", |
||
42 | $instance->text() |
||
43 | ); |
||
44 | } |
||
45 | |||
47 |