Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/vendor/sabre/vobject/tests/VObject/Property/FloatTest.php

30 lines
657 B

<?php
namespace Sabre\VObject\Property;
use Sabre\VObject;
class FloatTest extends \PHPUnit_Framework_TestCase {
function testMimeDir() {
$input = "BEGIN:VCARD\r\nVERSION:4.0\r\nX-FLOAT;VALUE=FLOAT:0.234;1.245\r\nEND:VCARD\r\n";
$mimeDir = new VObject\Parser\MimeDir($input);
$result = $mimeDir->parse($input);
$this->assertInstanceOf('Sabre\VObject\Property\Float', $result->{'X-FLOAT'});
$this->assertEquals(array(
0.234,
1.245,
), $result->{'X-FLOAT'}->getParts());
$this->assertEquals(
$input,
$result->serialize()
);
}
}