Skip to content

Commit

Permalink
Regression test + fix for #95
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter Admiraal committed Jul 4, 2018
1 parent 89f203e commit 846afa1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/VCardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,18 @@ public function tearDown()

public function testAddAddress()
{
$this->assertEquals($this->vcard, $this->vcard->addAddress());
$this->assertEquals($this->vcard, $this->vcard->addAddress(
'',
'88th Floor',
'555 East Flours Street',
'Los Angeles',
'CA',
'55555',
'USA'
));
$this->assertContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angele', $this->vcard->getOutput());
// Should fold on row 75, so we should not see the full address.
$this->assertNotContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angeles;CA;55555;', $this->vcard->getOutput());
}

public function testAddBirthday()
Expand Down

0 comments on commit 846afa1

Please sign in to comment.