Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testTextOnEmptyCard() { |
||
27 | |||
28 | $instance = new vCard( 'http://example.org/Foo', 'Foo', [] ); |
||
29 | |||
30 | $this->assertSame( |
||
31 | "BEGIN:VCARD\r\n" . |
||
32 | "VERSION:3.0\r\n" . |
||
33 | "N;CHARSET=UTF-8:Foo;;;;\r\n" . |
||
34 | "FN;CHARSET=UTF-8:Foo\r\n" . |
||
35 | "CLASS:PUBLIC\r\n" . |
||
36 | "SOURCE;CHARSET=UTF-8:http://example.org/Foo\r\n" . |
||
37 | "PRODID:-////Semantic MediaWiki\r\n" . |
||
38 | "REV:\r\n" . |
||
39 | "URL:http://example.org/Foo\r\n" . |
||
40 | "UID:http://example.org/Foo\r\n" . |
||
41 | "END:VCARD\r\n", |
||
42 | $instance->text() |
||
43 | ); |
||
44 | } |
||
45 | |||
47 |