/** * @group default * @depends testOutputEmptyVCard */ public function testOutputSeinarAPL() { $inputs = $this->getSeinarAPLInputs(); $vcard = $this->getSeinarAPL(); $output = $vcard->output(); $lines = $this->checkAndRemoveSkeleton($output); $expected = ['ORG:' . $inputs['org']['Name'] . ';' . $inputs['org']['Unit1'] . ';' . $inputs['org']['Unit2'], 'FN:' . $inputs['fn'], 'LOGO:' . addcslashes($inputs['logo'], "\\\n,:;"), 'CATEGORIES:' . $inputs['category1'], 'CATEGORIES:' . $inputs['category2'], 'CATEGORIES:' . $inputs['category3'], 'KIND:' . $inputs['kind'], 'UID:' . VCard::escape($vcard->getUID())]; sort($expected); $this->assertEquals($expected, $lines); }