Skip to content

Commit

Permalink
doctrine#44 - verifying correct paring of annotation with escaped quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 18, 2014
1 parent a62760c commit f177d96
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Doctrine/Tests/Common/Annotations/DocParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,19 @@ public function testKeyHasNumber()
$this->assertEquals(1, count($annots));
$this->assertEquals(array('foo' => 'test', 'bar2' => 'test'), $annots[0]->settings);
}

/**
* @group 44
*/
public function testSupportsEscapedQuotedValues()
{
$result = $this->createTestParser()->parse('@Doctrine\Tests\Common\Annotations\Name(foo="""bar""")');

$this->assertCount(1, $result);

$this->assertTrue($result[0] instanceof Name);
$this->assertEquals('"bar"', $result[0]->foo);
}
}

/** @Annotation */
Expand Down

0 comments on commit f177d96

Please sign in to comment.