コード例 #1
0
ファイル: CompoundTest.php プロジェクト: ajaboa/crmpuan
 function testSerialize()
 {
     $arr = array('ABC, Inc.', 'North American Division', 'Marketing;Sales');
     $elem = new Compound('ORG');
     $elem->setParts($arr);
     $this->assertEquals("ORG:ABC\\, Inc.;North American Division;Marketing\\;Sales\r\n", $elem->serialize());
 }
コード例 #2
0
ファイル: CompoundTest.php プロジェクト: rbrdevs/pydio-core
 function testGetPartsNull()
 {
     $str = 'ABC\\, Inc.;North American Division;Marketing\\;Sales';
     $elem = new Compound('ORG', null);
     $this->assertEquals(0, count($elem->getParts()));
 }