Mercurial > hg > rc1
view vendor/sabre/vobject/tests/VObject/Property/BooleanTest.php @ 41:d2414df68d78
Updated by Alex S Grebenschikov (www.poralix.com)
to make it compatible with RoundCube 1.3.0
| author | Charlie Root |
|---|---|
| date | Fri, 24 Jan 2025 14:20:15 -0500 |
| parents | 430dbd5346f7 |
| children |
line wrap: on
line source
<?php namespace Sabre\VObject\Property; use Sabre\VObject; class BooleanTest extends \PHPUnit_Framework_TestCase { function testMimeDir() { $input = "BEGIN:VCARD\r\nX-AWESOME;VALUE=BOOLEAN:TRUE\r\nX-SUCKS;VALUE=BOOLEAN:FALSE\r\nEND:VCARD\r\n"; $vcard = VObject\Reader::read($input); $this->assertTrue($vcard->{'X-AWESOME'}->getValue()); $this->assertFalse($vcard->{'X-SUCKS'}->getValue()); $this->assertEquals('BOOLEAN', $vcard->{'X-AWESOME'}->getValueType()); $this->assertEquals($input, $vcard->serialize()); } }
