Skip to content
Browse files

Make sure returns input string if no match found.

  • Loading branch information...
1 parent 96d3b4f commit 93dedcf8bc34a545d1894e40dd3851a7447dde04 @simensen simensen committed Apr 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/Dflydev/Tests/PlaceholderResolver/RegexPlaceholderResolverTest.php
View
2 tests/Dflydev/Tests/PlaceholderResolver/RegexPlaceholderResolverTest.php
@@ -28,6 +28,7 @@ public function testResolvePlaceholder()
array('bat', false, false),
array('composite', false, true),
array('FOO.BAR', false, true),
+ array('FOO.BAR.BAZ', false, false),
)))
;
$dataSource
@@ -50,6 +51,7 @@ public function testResolvePlaceholder()
$this->assertEquals("FOO-BAR", $placeholderResolver->resolvePlaceholder('${composite}'));
$this->assertEquals("FOO-BAR-BAZ", $placeholderResolver->resolvePlaceholder('${composite}-${baz}'));
$this->assertEquals("Foo Dot Bar", $placeholderResolver->resolvePlaceholder('${${foo}.${bar}}'));
+ $this->assertEquals('${FOO.BAR.BAZ}', $placeholderResolver->resolvePlaceholder('${FOO.BAR.BAZ}'));
}
/**

0 comments on commit 93dedcf

Please sign in to comment.
Something went wrong with that request. Please try again.