public function testNestedInlineTagEscapingSequence() { $fixture = <<<LONGDESC This is text for a description with an {@internal inline tag with literal {{@}link{} in it}. LONGDESC; $object = new Description($fixture); $this->assertSame($fixture, $object->getContents()); $parsedContents = $object->getParsedContents(); $this->assertCount(3, $parsedContents); $this->assertSame('This is text for a description with an ', $parsedContents[0]); $this->assertInstanceOf(__NAMESPACE__ . '\\Tag', $parsedContents[1]); $this->assertSame('.', $parsedContents[2]); $this->assertSame(array('inline tag with literal {@link} in it'), $parsedContents[1]->getParsedDescription()); }