Exemplo n.º 1
0
 protected function outputValue()
 {
     return VCard::escape($this->getValue());
 }
 /**
  * @group default
  * @depends testSetAndBuild
  */
 public function testOutputMediaType()
 {
     $builder = $this->specification->getBuilder();
     $builder->setValue('http://example.com/logo.jpg')->setMediaType('image/png');
     $property = $builder->build();
     $this->assertEquals('LOGO;MEDIATYPE=image/png:' . VCard::escape('http://example.com/logo.jpg') . "\n", $property->output());
 }