@@ -38,7 +38,7 @@ |
||
38 | 38 | { |
39 | 39 | /** |
40 | 40 | * The raw VCard content. |
41 | - * |
|
41 | + * |
|
42 | 42 | * @var string |
43 | 43 | */ |
44 | 44 | protected $content; |
@@ -78,17 +78,17 @@ |
||
78 | 78 | public function testAddAddress() |
79 | 79 | { |
80 | 80 | $this->assertEquals($this->vcard, $this->vcard->addAddress( |
81 | - '', |
|
82 | - '88th Floor', |
|
83 | - '555 East Flours Street', |
|
84 | - 'Los Angeles', |
|
85 | - 'CA', |
|
86 | - '55555', |
|
87 | - 'USA' |
|
81 | + '', |
|
82 | + '88th Floor', |
|
83 | + '555 East Flours Street', |
|
84 | + 'Los Angeles', |
|
85 | + 'CA', |
|
86 | + '55555', |
|
87 | + 'USA' |
|
88 | 88 | )); |
89 | - $this->assertContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angele', $this->vcard->getOutput()); |
|
90 | - // Should fold on row 75, so we should not see the full address. |
|
91 | - $this->assertNotContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angeles;CA;55555;', $this->vcard->getOutput()); |
|
89 | + $this->assertContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angele', $this->vcard->getOutput()); |
|
90 | + // Should fold on row 75, so we should not see the full address. |
|
91 | + $this->assertNotContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angeles;CA;55555;', $this->vcard->getOutput()); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | public function testAddBirthday() |
@@ -639,7 +639,7 @@ |
||
639 | 639 | // The chunk_split_unicode creates a huge memory footprint when used on long strings (EG photos are base64 10MB results in > 1GB memory usage) |
640 | 640 | // So check if the string is ASCII (7 bit) and if it is use the built in way RE: https://github.com/jeroendesloovere/vcard/issues/153 |
641 | 641 | if ($this->is_ascii($text)) { |
642 | - return substr(chunk_split($text, 75, "\r\n "), 0, -3); |
|
642 | + return substr(chunk_split($text, 75, "\r\n "), 0, -3); |
|
643 | 643 | } |
644 | 644 | |
645 | 645 | // split, wrap and trim trailing separator |