/**
  * @dataProvider provideShortcodes
  */
 public function testShortcode($expected, $name, array $args, $content)
 {
     $s = new Shortcode($name, $args, $content);
     $textSerializer = new TextSerializer();
     $this->assertSame($name, $s->getName());
     $this->assertSame($args, $s->getParameters());
     $this->assertSame($content, $s->getContent());
     $this->assertSame($expected, $textSerializer->serialize($s));
     $this->assertSame('arg', $s->getParameterAt(0));
     $this->assertTrue($s->hasParameters());
 }
 public function testExceptionMultipleText()
 {
     $serializer = new TextSerializer();
     $this->setExpectedException('InvalidArgumentException');
     $serializer->unserialize('[sc /] c [xx]');
 }