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