diff options
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/AddressTest.php')
-rw-r--r-- | www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/AddressTest.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/AddressTest.php b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/AddressTest.php index 52c8b5a1..0b4855b2 100644 --- a/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/AddressTest.php +++ b/www/wiki/extensions/SemanticResultFormats/tests/phpunit/Unit/vCard/AddressTest.php @@ -23,6 +23,15 @@ class AddressTest extends \PHPUnit_Framework_TestCase { ); } + public function testHasAddress() { + + $instance = new Address( '', [] ); + + $this->assertFalse( + $instance->hasAddress() + ); + } + public function testText() { $adr = [ @@ -36,9 +45,10 @@ class AddressTest extends \PHPUnit_Framework_TestCase { ]; $instance = new Address( '', $adr ); + $instance->set( 'region', 'Bar0042' ); $this->assertSame( - "ADR;TYPE=WORK;CHARSET=UTF-8:;;2 Example Avenue;Anytown;Foo;01111;Bar\r\n", + "ADR;TYPE=WORK;CHARSET=UTF-8:;;2 Example Avenue;Anytown;Bar0042;01111;Bar\r\n", $instance->text() ); } |