ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
FloatTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\VObject\Property
;
4
5
use
PHPUnit\Framework\TestCase
;
6
use
Sabre\VObject
;
7
8
class
FloatTest
extends
TestCase {
9
10
function
testMimeDir
() {
11
12
$input
=
"BEGIN:VCARD\r\nVERSION:4.0\r\nX-FLOAT;VALUE=FLOAT:0.234;1.245\r\nEND:VCARD\r\n"
;
13
$mimeDir =
new
VObject\Parser\MimeDir
(
$input
);
14
15
$result
= $mimeDir->parse(
$input
);
16
17
$this->assertInstanceOf(
'Sabre\VObject\Property\FloatValue'
,
$result
->{
'X-FLOAT'
});
18
19
$this->assertEquals([
20
0.234,
21
1.245,
22
],
$result
->{
'X-FLOAT'
}->getParts());
23
24
$this->assertEquals(
25
$input
,
26
$result
->serialize()
27
);
28
29
}
30
31
}
Sabre\VObject\Property\FloatTest
Definition:
FloatTest.php:8
Sabre\VObject
Definition:
mergeduplicates.php:4
$result
$result
Definition:
CleanUpTest.php:463
Sabre\VObject\Property\FloatTest\testMimeDir
testMimeDir()
Definition:
FloatTest.php:10
Sabre\VObject\$input
if($argc< 3) $input
Definition:
mergeduplicates.php:35
Sabre\VObject\Property
Definition:
Binary.php:3
Sabre\VObject\Parser\MimeDir
MimeDir parser.
Definition:
MimeDir.php:25
php
TestCase
libs
composer
vendor
sabre
vobject
tests
VObject
Property
FloatTest.php
Generated on Thu Jan 16 2025 19:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)