ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\VObject\Property\FloatTest Class Reference
+ Inheritance diagram for Sabre\VObject\Property\FloatTest:
+ Collaboration diagram for Sabre\VObject\Property\FloatTest:

Public Member Functions

 testMimeDir ()
 

Detailed Description

Definition at line 8 of file FloatTest.php.

Member Function Documentation

◆ testMimeDir()

Sabre\VObject\Property\FloatTest::testMimeDir ( )

Definition at line 10 of file FloatTest.php.

References Sabre\VObject\$input, and $result.

10  {
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  }
$result
if($argc< 3) $input

The documentation for this class was generated from the following file: