/** * @group default */ public function testGetCardBody() { $input = 'BEGIN:VCARD' . "\n" . 'VERSION:4.0' . "\n" . 'FN:foo' . "\n" . 'END:VCARD' . "\n"; $components = $this->parser->getCardBody($input); $this->assertArrayHasKey('version', $components); $this->assertEquals('4.0', $components['version']); $this->assertArrayHasKey('body', $components); $this->assertEquals("FN:foo\n", $components['body']); }